1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/python-modules/django-polymorphic/default.nix
2021-01-25 18:31:47 +01:00

28 lines
719 B
Nix

{ lib, 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 = with lib; {
homepage = "https://github.com/django-polymorphic/django-polymorphic";
description = "Improved Django model inheritance with automatic downcasting";
license = licenses.bsd3;
};
}