nixpkgs/pkgs/development/python-modules/cycler/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

37 lines
732 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, coverage
, nose
, six
, python
}:
buildPythonPackage rec {
pname = "cycler";
version = "0.11.0";
src = fetchPypi {
inherit pname version;
sha256 = "9c87405839a19696e837b3b818fed3f5f69f16f1eec1a1ad77e043dcea9c772f";
};
nativeCheckInputs = [ coverage nose ];
propagatedBuildInputs = [ six ];
checkPhase = ''
${python.interpreter} run_tests.py
'';
# Tests were not included in release.
# https://github.com/matplotlib/cycler/issues/31
doCheck = false;
meta = {
description = "Composable style cycles";
homepage = "https://github.com/matplotlib/cycler";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}