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