depot/third_party/nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
723 B
Nix

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