nixpkgs/pkgs/development/python-modules/jdcal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
604 B
Nix
Raw Normal View History

2017-12-31 14:01:16 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "jdcal";
2019-04-24 18:42:49 +02:00
version = "1.4.1";
format = "setuptools";
2017-12-31 14:01:16 +01:00
src = fetchPypi {
inherit pname version;
2019-04-24 18:42:49 +02:00
sha256 = "472872e096eb8df219c23f2689fc336668bdb43d194094b5cc1707e1640acfc8";
2017-12-31 14:01:16 +01:00
};
nativeCheckInputs = [ pytest ];
2017-12-31 14:01:16 +01:00
checkPhase = ''
py.test
'';
meta = {
description = "A 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 ];
};
2020-08-25 04:07:09 +02:00
}