ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / django-polymorphic / default.nix
blobdaebb7f7e0488bdba3c0c85da646f59d57408cab
1 { lib, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
3 buildPythonPackage rec {
4   pname = "django-polymorphic";
5   version = "3.1";
7   src = fetchFromGitHub {
8     owner = "django-polymorphic";
9     repo = "django-polymorphic";
10     rev = "v${version}";
11     sha256 = "sha256-JJY+FoMPSnWuSsNIas2JedGJpdm6RfPE3E1VIjGuXIc=";
12   };
14   propagatedBuildInputs = [ django ];
16   checkInputs = [ dj-database-url ];
18   checkPhase = ''
19     ${python.interpreter} runtests.py
20   '';
22   pythonImportsCheck = [ "polymorphic" ];
24   meta = with lib; {
25     homepage = "https://github.com/django-polymorphic/django-polymorphic";
26     description = "Improved Django model inheritance with automatic downcasting";
27     license = licenses.bsd3;
28     maintainers = with maintainers; [ SuperSandro2000 ];
29   };