Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 763 B view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, importlib-resources 3, jaraco_functools 4, setuptools_scm 5}: 6 7buildPythonPackage rec { 8 pname = "jaraco.text"; 9 version = "3.5.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "f07f1076814a17a98eb915948b9a0dc71b1891c833588066ec1feb04ea4389b1"; 14 }; 15 16 pythonNamespaces = [ "jaraco" ]; 17 18 nativeBuildInputs =[ setuptools_scm ]; 19 propagatedBuildInputs = [ 20 jaraco_functools 21 ] ++ lib.optional (pythonOlder "3.7") [ importlib-resources ]; 22 23 # no tests in pypi package 24 doCheck = false; 25 26 meta = with lib; { 27 description = "Module for text manipulation"; 28 homepage = "https://github.com/jaraco/jaraco.text"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ ]; 31 }; 32 33}