Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 39 lines 896 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, attrs 5, pendulum 6, pprintpp 7, wrapt 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "tbm-utils"; 13 version = "2.6.0"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "235748cceeb22c042e32d2fdfd4d710021bac9b938c4f2c35e1fce1cfd58f7ec"; 19 }; 20 21 propagatedBuildInputs = [ attrs pendulum pprintpp wrapt ]; 22 23 # this versioning was done to prevent normal pip users from encountering 24 # issues with package failing to build from source, but nixpkgs is better 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0" 28 ''; 29 30 # No tests in archive. 31 doCheck = false; 32 33 meta = { 34 description = "A commonly-used set of utilities"; 35 homepage = "https://github.com/thebigmunch/tbm-utils"; 36 license = with lib.licenses; [ mit ]; 37 }; 38 39}