nixpkgs/pkgs/development/python-modules/sly/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

45 lines
777 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "sly";
version = "0.5";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ=";
};
nativeBuildInputs = [
setuptools
];
postPatch = ''
# imperative dev dependency installation
rm Makefile
'';
pythonImportsCheck = [
"sly"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "An improved PLY implementation of lex and yacc for Python 3";
homepage = "https://github.com/dabeaz/sly";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}