depot/third_party/nixpkgs/pkgs/development/python-modules/django-model-utils/default.nix

46 lines
907 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "django-model-utils";
version = "4.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-model-utils";
rev = "refs/tags/${version}";
hash = "sha256-ZEnDk4kCXyhLvq3CZTK/zP3IK6BsNRqbkfqKAuU6Mfk=";
};
build-system = [
setuptools-scm
];
dependencies = [
django
];
# Test requires postgres database
doCheck = false;
pythonImportsCheck = [
"model_utils"
];
meta = with lib; {
homepage = "https://github.com/jazzband/django-model-utils";
description = "Django model mixins and utilities";
changelog = "https://github.com/jazzband/django-model-utils/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}