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'
This commit is contained in:
ento 2020-07-22 11:33:58 -08:00 committed by Frederik Rietdijk
parent ce55b09ad5
commit aff753d184

View File

@ -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;