94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
44 lines
858 B
Nix
44 lines
858 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-stubs-ext";
|
|
version = "4.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-d4nwyuynFS/vB61rlN7HMQoF0Ljat395eeGdsAN7USc=";
|
|
};
|
|
|
|
# setup.cfg tries to pull in nonexistent LICENSE.txt file
|
|
postPatch = "rm setup.cfg";
|
|
|
|
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 ];
|
|
};
|
|
}
|