depot/third_party/nixpkgs/pkgs/development/python-modules/jdcal/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
608 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytest,
}:
buildPythonPackage rec {
pname = "jdcal";
version = "1.4.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8";
};
nativeCheckInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = {
description = "Module containing functions for converting between Julian dates and calendar dates";
homepage = "https://github.com/phn/jdcal";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ lihop ];
};
}