Merge pull request #97845 from risicle/ris-holidays-fix
pythonPackages.holidays: fix build by adding korean-lunar-calendar dependency
This commit is contained in:
commit
58802bec5f
@ -1,4 +1,11 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, six, dateutil, convertdate }:
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, convertdate
|
||||||
|
, dateutil
|
||||||
|
, korean-lunar-calendar
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "holidays";
|
pname = "holidays";
|
||||||
@ -9,7 +16,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "839281f2b1ae7ac576da7951472482f6e714818296853107ea861fa60f5013cc";
|
sha256 = "839281f2b1ae7ac576da7951472482f6e714818296853107ea861fa60f5013cc";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six dateutil convertdate ];
|
propagatedBuildInputs = [
|
||||||
|
convertdate
|
||||||
|
dateutil
|
||||||
|
korean-lunar-calendar
|
||||||
|
six
|
||||||
|
];
|
||||||
|
pythonImportsCheck = [ "holidays" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/dr-prodigy/python-holidays";
|
homepage = "https://github.com/dr-prodigy/python-holidays";
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "korean-lunar-calendar";
|
||||||
|
version = "0.2.1";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit version;
|
||||||
|
pname = "korean_lunar_calendar";
|
||||||
|
sha256 = "0p97r21298ipgvsqh978aq2n6cvybzp8bskcvj15mm1f76qm9khj";
|
||||||
|
};
|
||||||
|
|
||||||
|
# no real tests
|
||||||
|
pythonImportsCheck = [ "korean_lunar_calendar" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A library to convert Korean lunar-calendar to Gregorian calendar.";
|
||||||
|
homepage = "https://github.com/usingsky/korean_lunar_calendar_py";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.ris ];
|
||||||
|
};
|
||||||
|
}
|
@ -3190,6 +3190,8 @@ in {
|
|||||||
|
|
||||||
konfig = callPackage ../development/python-modules/konfig { };
|
konfig = callPackage ../development/python-modules/konfig { };
|
||||||
|
|
||||||
|
korean-lunar-calendar = callPackage ../development/python-modules/korean-lunar-calendar { };
|
||||||
|
|
||||||
kubernetes = callPackage ../development/python-modules/kubernetes { };
|
kubernetes = callPackage ../development/python-modules/kubernetes { };
|
||||||
|
|
||||||
labelbox = callPackage ../development/python-modules/labelbox { };
|
labelbox = callPackage ../development/python-modules/labelbox { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user