mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
pythonPackages.django-polymorphic: fix tests
This commit is contained in:
parent
7b525acee2
commit
ae56cc1f30
1 changed files with 12 additions and 6 deletions
|
@ -1,18 +1,24 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, django }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-polymorphic";
|
pname = "django-polymorphic";
|
||||||
version = "2.0.2";
|
version = "2.0.2";
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
# PyPI tarball is missing some test files
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
sha256 = "e1821d7b5874509a158a0f22bebf544330e0944c481c5a3e6da6cac8887e4e88";
|
owner = pname;
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "18p84kdwpfp423vb2n38h840mj3bq0j57jx3cry7c8dznpi0vfi2";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ django ];
|
checkInputs = [ dj-database-url ];
|
||||||
propagatedBuildInputs = [ django ];
|
propagatedBuildInputs = [ django ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} runtests.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/django-polymorphic/django-polymorphic;
|
homepage = https://github.com/django-polymorphic/django-polymorphic;
|
||||||
description = "Improved Django model inheritance with automatic downcasting";
|
description = "Improved Django model inheritance with automatic downcasting";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue