mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 03:57:58 +03:00
python3Packages.hdate: init 0.10.2
This commit is contained in:
parent
4fac78928c
commit
540f69e705
63
pkgs/development/python-modules/hdate/default.nix
Normal file
63
pkgs/development/python-modules/hdate/default.nix
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
{ lib
|
||||||
|
, astral
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, poetry-core
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "hdate";
|
||||||
|
version = "0.10.2";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "py-libhdate";
|
||||||
|
repo = "py-libhdate";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "07b0c7q8w6flj4q72v58d3wymsxfp5qz8z97qhhc2977mjx5fsxd";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
astral
|
||||||
|
pytz
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Version was not updated for the release
|
||||||
|
(fetchpatch {
|
||||||
|
name = "update-version.patch";
|
||||||
|
url = "https://github.com/py-libhdate/py-libhdate/commit/b8186a891b29fed99def5ce0985ee0ae1e0dd77e.patch";
|
||||||
|
sha256 = "1pmhgh57x9390ff5gyisng0l6b79sd6dxmf172hpk1gr03c3hv98";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml --replace "^2020.5" ">=2020.5"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"tests"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "hdate" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module for Jewish/Hebrew date and Zmanim";
|
||||||
|
homepage = "https://github.com/py-libhdate/py-libhdate";
|
||||||
|
license = with licenses; [ gpl3Plus ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -2985,6 +2985,8 @@ in {
|
|||||||
|
|
||||||
hachoir = callPackage ../development/python-modules/hachoir { };
|
hachoir = callPackage ../development/python-modules/hachoir { };
|
||||||
|
|
||||||
|
hdate = callPackage ../development/python-modules/hdate { };
|
||||||
|
|
||||||
ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { };
|
ha-ffmpeg = callPackage ../development/python-modules/ha-ffmpeg { };
|
||||||
|
|
||||||
halo = callPackage ../development/python-modules/halo { };
|
halo = callPackage ../development/python-modules/halo { };
|
||||||
|
Loading…
Reference in New Issue
Block a user