at 24.05-pre 842 B view raw
1{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook, click }: 2 3buildPythonPackage rec { 4 pname = "lexid"; 5 version = "2021.1006"; 6 disabled = pythonOlder "3.6"; 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "509a3a4cc926d3dbf22b203b18a4c66c25e6473fb7c0e0d30374533ac28bafe5"; 10 }; 11 12 prePatch = '' 13 # Disable lib3to6, since we're only building this on 3.6+ anyway. 14 substituteInPlace setup.py \ 15 --replace 'if any(arg.startswith("bdist") for arg in sys.argv):' 'if False:' 16 ''; 17 18 propagatedBuildInputs = [ click ]; 19 20 nativeCheckInputs = [ pytestCheckHook ]; 21 22 meta = with lib; { 23 description = "micro library to increment lexically ordered numerical ids"; 24 homepage = "https://pypi.org/project/lexid/"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ kfollesdal ]; 27 }; 28}