2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
|
2017-06-27 22:12:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-polymorphic";
|
2019-08-05 10:14:38 +01:00
|
|
|
version = "2.1.2";
|
2017-06-27 22:12:29 +01:00
|
|
|
|
2018-03-02 02:05:55 +00:00
|
|
|
# PyPI tarball is missing some test files
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-08-05 10:14:38 +01:00
|
|
|
sha256 = "0zghrq7y7g2ls38cz6y98qj5xwnn992slhb95qyp6l66d420j179";
|
2017-06-27 22:12:29 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 02:05:55 +00:00
|
|
|
checkInputs = [ dj-database-url ];
|
2017-06-27 22:12:29 +01:00
|
|
|
propagatedBuildInputs = [ django ];
|
|
|
|
|
2018-03-02 02:05:55 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/django-polymorphic/django-polymorphic";
|
2017-06-27 22:12:29 +01:00
|
|
|
description = "Improved Django model inheritance with automatic downcasting";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.bsd3;
|
2017-06-27 22:12:29 +01:00
|
|
|
};
|
|
|
|
}
|