Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 777 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "sly"; 11 version = "0.5"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 ]; 24 25 postPatch = '' 26 # imperative dev dependency installation 27 rm Makefile 28 ''; 29 30 pythonImportsCheck = [ 31 "sly" 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 meta = with lib; { 39 description = "An improved PLY implementation of lex and yacc for Python 3"; 40 homepage = "https://github.com/dabeaz/sly"; 41 license = licenses.bsd3; 42 maintainers = [ maintainers.costrouc ]; 43 }; 44}