mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
c3c05e97d1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-django-polymorphic/versions
27 lines
721 B
Nix
27 lines
721 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-polymorphic";
|
|
version = "2.0.3";
|
|
|
|
# PyPI tarball is missing some test files
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "08qk3rbk0xlphwalkigbhqpmfaqjk1sxmlfh8zy8s8dw7fw1myk4";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|