depot/third_party/nixpkgs/pkgs/development/python-modules/django-stubs-ext/default.nix

42 lines
767 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, django
, fetchPypi
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "django-stubs-ext";
version = "4.2.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-xp0cxG8cTDt4lLaFpQIsKbKjbHz7UuI3YurzV+v8LJg=";
};
propagatedBuildInputs = [
django
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"django_stubs_ext"
];
meta = with lib; {
description = "Extensions and monkey-patching for django-stubs";
homepage = "https://github.com/typeddjango/django-stubs";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}