mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
Merge pull request #301269 from fabaff/holidays-bump
python312Packages.holidays: 0.44 -> 0.46
This commit is contained in:
commit
7a68b8b8fc
|
@ -1,27 +1,20 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# l10n
|
||||
, polib
|
||||
, lingua
|
||||
, chameleon
|
||||
|
||||
# dependencies
|
||||
, python-dateutil
|
||||
|
||||
# tests
|
||||
, importlib-metadata
|
||||
, pytestCheckHook
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
chameleon,
|
||||
fetchFromGitHub,
|
||||
importlib-metadata,
|
||||
lingva,
|
||||
polib,
|
||||
pytestCheckHook,
|
||||
python-dateutil,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "holidays";
|
||||
version = "0.44";
|
||||
version = "0.46";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -30,14 +23,14 @@ buildPythonPackage rec {
|
|||
owner = "vacanza";
|
||||
repo = "python-holidays";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-RwM4RtFIUSaM/e4kiHOMg97lZ4VknB1pOqGRuIe2ns8=";
|
||||
hash = "sha256-v0tufmOtxUP5pTsNNJJ9fevCPnsa68e0mdDtKGXEgVs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools
|
||||
|
||||
# l10n
|
||||
lingua
|
||||
lingva
|
||||
chameleon
|
||||
polib
|
||||
];
|
||||
|
@ -52,9 +45,7 @@ buildPythonPackage rec {
|
|||
./scripts/l10n/generate_mo_files.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
];
|
||||
dependencies = [ python-dateutil ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
@ -64,21 +55,16 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"holidays"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Failure starting with 0.24
|
||||
"test_l10n"
|
||||
];
|
||||
pythonImportsCheck = [ "holidays" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Generate and work with holidays in Python";
|
||||
homepage = "https://github.com/vacanza/python-holidays";
|
||||
changelog = "https://github.com/vacanza/python-holidays/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab jluttine ];
|
||||
maintainers = with maintainers; [
|
||||
fab
|
||||
jluttine
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
46
pkgs/development/python-modules/lingva/default.nix
Normal file
46
pkgs/development/python-modules/lingva/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
chameleon,
|
||||
click,
|
||||
fetchFromGitHub,
|
||||
polib,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lingva";
|
||||
version = "5.0.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vacanza";
|
||||
repo = "lingva";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kr64L/DtEWZu9z2p90QJHnb/6LygwZgxE+rARbo0NYI=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
chameleon
|
||||
click
|
||||
polib
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "lingva" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module with tools to extract translatable texts from your code";
|
||||
homepage = "https://github.com/vacanza/lingva";
|
||||
changelog = "https://github.com/vacanza/lingva/blob/${version}/changes.rst";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -6737,6 +6737,8 @@ self: super: with self; {
|
|||
|
||||
lingua = callPackage ../development/python-modules/lingua { };
|
||||
|
||||
lingva = callPackage ../development/python-modules/lingva { };
|
||||
|
||||
linien-client = callPackage ../development/python-modules/linien-client { };
|
||||
|
||||
linien-common = callPackage ../development/python-modules/linien-common { };
|
||||
|
|
Loading…
Reference in a new issue