3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/crashtest/default.nix
ento aff753d184 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'
2020-07-23 08:40:28 +02:00

26 lines
671 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, pythonAtLeast, pytest }:
buildPythonPackage rec {
pname = "crashtest";
version = "0.3.0";
disabled = !(pythonAtLeast "3.6");
src = fetchPypi {
inherit pname version;
sha256 = "056zzbznl3xfnbblfci8lvcam3h7k7va68vi6asrm4q0ck4nrh79";
};
# has tests, but only on GitHub, however the pyproject build fails for me
pythonImportsCheck = [
"crashtest.frame"
"crashtest.inspector"
];
meta = with lib; {
homepage = "https://github.com/sdispater/crashtest";
description = "Manage Python errors with ease";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}