depot/third_party/nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

30 lines
803 B
Nix

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