Files
nixpkgs/pkgs/development/python-modules/convertdate/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

45 lines
828 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pymeeus
, pytz
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "convertdate";
version = "2.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fitnr";
repo = pname;
rev = "v${version}";
hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
};
propagatedBuildInputs = [
pymeeus
pytz
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"convertdate"
];
meta = with lib; {
description = "Utils for converting between date formats and calculating holidays";
mainProgram = "censusgeocode";
homepage = "https://github.com/fitnr/convertdate";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};
}