1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 03:53:41 +00:00
nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix

28 lines
721 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
2017-06-27 22:12:29 +01:00
buildPythonPackage rec {
pname = "django-polymorphic";
version = "2.0.2";
2017-06-27 22:12:29 +01:00
# PyPI tarball is missing some test files
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "18p84kdwpfp423vb2n38h840mj3bq0j57jx3cry7c8dznpi0vfi2";
2017-06-27 22:12:29 +01:00
};
checkInputs = [ dj-database-url ];
2017-06-27 22:12:29 +01:00
propagatedBuildInputs = [ django ];
checkPhase = ''
${python.interpreter} runtests.py
'';
2017-06-27 22:12:29 +01:00
meta = {
homepage = https://github.com/django-polymorphic/django-polymorphic;
2017-06-27 22:12:29 +01:00
description = "Improved Django model inheritance with automatic downcasting";
license = stdenv.lib.licenses.bsd3;
};
}