nixpkgs/pkgs/development/python-modules/sly/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
777 B
Nix
Raw Normal View History

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