1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 13:29:13 +03:00
nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
803 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
2017-06-27 21:12:29 +00:00
buildPythonPackage rec {
pname = "django-polymorphic";
version = "3.1";
2017-06-27 21:12:29 +00:00
src = fetchFromGitHub {
owner = "django-polymorphic";
repo = "django-polymorphic";
rev = "v${version}";
sha256 = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc=";
2017-06-27 21:12:29 +00:00
};
propagatedBuildInputs = [ django ];
checkInputs = [ dj-database-url ];
checkPhase = ''
${python.interpreter} runtests.py
'';
pythonImportsCheck = [ "polymorphic" ];
meta = with lib; {
homepage = "https://github.com/django-polymorphic/django-polymorphic";
2017-06-27 21:12:29 +00:00
description = "Improved Django model inheritance with automatic downcasting";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
2017-06-27 21:12:29 +00:00
};
}