Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5}: 6 7buildPythonPackage rec { 8 pname = "udatetime"; 9 version = "0.0.17"; 10 11 src = fetchPypi { 12 inherit pname version; 13 hash = "sha256-sQvFVwaZpDinLitaZOdr2MKO4779FvIJOHpVB/oLgwE="; 14 }; 15 16 patches = [ 17 # fix build with python 3.9 18 (fetchpatch { 19 url = "https://github.com/freach/udatetime/pull/33.patch"; 20 sha256 = "02wm7ivkv1viqn2wflgd10dgpddfqfrwacmrldigb1mwb79n554j"; 21 }) 22 ]; 23 24 # tests not included on pypi 25 doCheck = false; 26 27 pythonImportsCheck = [ "udatetime" ]; 28 29 meta = with lib; { 30 description = "Fast RFC3339 compliant Python date-time library"; 31 homepage = "https://github.com/freach/udatetime"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ globin ]; 34 }; 35}