Files
nixpkgs/pkgs/development/python-modules/nanotime/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
778 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "nanotime";
version = "0.5.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-x8wjH8X220AbRI16tRyW0KRzP0tp+r5Wmldvif/flms=";
};
build-system = [ setuptools ];
# Tests currently failing
# https://github.com/jbenet/nanotime/issues/2
doCheck = false;
pythonImportsCheck = [ "nanotime" ];
meta = {
description = "Provides a time object that keeps time as the number of nanoseconds since the UNIX epoch";
homepage = "https://github.com/jbenet/nanotime/tree/master/python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cmcdragonkai ];
};
}