33afbf39f6
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.
38 lines
664 B
Nix
38 lines
664 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ansi";
|
|
version = "0.3.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tehmaze";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"ansi.colour"
|
|
"ansi.color"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ANSI cursor movement and graphics";
|
|
homepage = "https://github.com/tehmaze/ansi/";
|
|
license = licenses.mit;
|
|
};
|
|
}
|