at master 780 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "nanotime"; 11 version = "0.5.2"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-x8wjH8X220AbRI16tRyW0KRzP0tp+r5Wmldvif/flms="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 # Tests currently failing 24 # https://github.com/jbenet/nanotime/issues/2 25 doCheck = false; 26 27 pythonImportsCheck = [ "nanotime" ]; 28 29 meta = with lib; { 30 description = "Provides a time object that keeps time as the number of nanoseconds since the UNIX epoch"; 31 homepage = "https://github.com/jbenet/nanotime/tree/master/python"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ cmcdragonkai ]; 34 }; 35}