summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/djangorestframework-stubs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/djangorestframework-stubs/default.nix')
-rw-r--r--pkgs/development/python-modules/djangorestframework-stubs/default.nix17
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/djangorestframework-stubs/default.nix b/pkgs/development/python-modules/djangorestframework-stubs/default.nix
index b0434f169f43..f78eba4dc99f 100644
--- a/pkgs/development/python-modules/djangorestframework-stubs/default.nix
+++ b/pkgs/development/python-modules/djangorestframework-stubs/default.nix
@@ -19,21 +19,26 @@
buildPythonPackage rec {
pname = "djangorestframework-stubs";
- version = "3.16.0";
+ version = "3.16.1";
pyproject = true;
- disabled = pythonOlder "3.9";
+ disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "typeddjango";
repo = "djangorestframework-stubs";
tag = version;
- hash = "sha256-q/9tCMT79TMHIQ4KH8tiunaTt7L6IItwNYBFlbNxBcE=";
+ hash = "sha256-TTv6v7G3LODrUDSYSNNa4+dujih7QElmvK3mMQg9EuQ=";
};
- nativeBuildInputs = [ setuptools ];
+ postPatch = ''
+ substituteInPlace pyproject.toml \
+ --replace-fail "<79.0.0" ""
+ '';
- propagatedBuildInputs = [
+ build-system = [ setuptools ];
+
+ dependencies = [
django-stubs
requests
types-pyyaml
@@ -54,7 +59,7 @@ buildPythonPackage rec {
]
++ lib.flatten (builtins.attrValues optional-dependencies);
- # Upstream recommends mypy > 1.7 which we don't have yet, thus all testsare failing with 3.14.5 and below
+ # Upstream recommends mypy > 1.7 which we don't have yet, thus all tests are failing with 3.14.5 and below
doCheck = false;
pythonImportsCheck = [ "rest_framework-stubs" ];