depot/third_party/nixpkgs/pkgs/development/python-modules/convertdate/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

23 lines
674 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, pymeeus, pytz }:
buildPythonPackage rec {
pname = "convertdate";
version = "2.2.0";
# Tests are not available in the PyPI tarball so use GitHub instead.
src = fetchFromGitHub {
owner = "fitnr";
repo = pname;
rev = "v${version}";
sha256 = "04j8k7a9qndmawy3m345py74y18hw7lb6gc0qp0mr8d68x99xjq0";
};
propagatedBuildInputs = [ pymeeus pytz ];
meta = with stdenv.lib; {
homepage = "https://github.com/fitnr/convertdate";
description = "Utils for converting between date formats and calculating holidays";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}