depot/third_party/nixpkgs/pkgs/development/python-modules/pyrfc3339/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

46 lines
671 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, setuptools
# dependencies
, pytz
# tests
, nose
}:
buildPythonPackage rec {
pname = "pyRFC3339";
version = "1.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pytz
];
doCheck = pythonOlder "3.12";
nativeCheckInputs = [
nose
];
meta = with lib; {
description = "Generate and parse RFC 3339 timestamps";
homepage = "https://github.com/kurtraschke/pyRFC3339";
license = licenses.mit;
};
}