From aff753d1846a2023b30ffc1af6db7b6820512f1f Mon Sep 17 00:00:00 2001 From: ento Date: Wed, 22 Jul 2020 11:33:58 -0800 Subject: [PATCH] pythonPackages.crashtest: mirror the python version range specified in pyproject.toml Trying to build crashtest with python35 fails with: > ERROR: Package 'crashtest' requires a different Python: 3.5.9 not in > '>=3.6,<4.0' --- pkgs/development/python-modules/crashtest/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/crashtest/default.nix b/pkgs/development/python-modules/crashtest/default.nix index e4c7fb839f9..9e6ff1f3d83 100644 --- a/pkgs/development/python-modules/crashtest/default.nix +++ b/pkgs/development/python-modules/crashtest/default.nix @@ -1,9 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, isPy27, pytest }: +{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, pythonAtLeast, pytest }: buildPythonPackage rec { pname = "crashtest"; version = "0.3.0"; - disabled = isPy27; + disabled = !(pythonAtLeast "3.6"); src = fetchPypi { inherit pname version;