mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 23:55:23 +00:00
0bcd68b1ef
This derivation was introduced in commit
e1d60a05af
with version 2.2.2 but the
sha256 hash in that commit actually corresponded to version 2.2.1,
as you can see below:
$ nix-prefetch-github --rev "v2.2.1" fitnr convertdate | jq '.sha256'
"1xgi7x9b9kxm0q51bqnmwdm5lp8vwhx5yk4d1b23r37spz9dbhw5"
37 lines
740 B
Nix
37 lines
740 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pymeeus
|
|
, pytz
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "convertdate";
|
|
version = "2.2.2";
|
|
|
|
# Tests are not available in the PyPI tarball so use GitHub instead.
|
|
src = fetchFromGitHub {
|
|
owner = "fitnr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "07x1j6jgkmrzdpv2lhpp4n16621mpmlylvwdwsggdjivhzvc3x9q";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pymeeus
|
|
pytz
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/fitnr/convertdate";
|
|
description = "Utils for converting between date formats and calculating holidays";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|