Skip to content

Commit

Permalink
python311Packages.flufl-i18n: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored and Stunkymonkey committed Feb 2, 2024
1 parent 97e7911 commit 4eea3ae
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions pkgs/development/python-modules/flufl/i18n.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,46 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, atpublic
, pdm-pep517
, pytestCheckHook
, sybil
}:

buildPythonPackage rec {
pname = "flufl-i18n";
version = "4.1.1";
format = "pyproject";
pyproject = true;

nativeBuildInputs = [ pdm-pep517 ];
propagatedBuildInputs = [ atpublic ];

doCheck = false;

pythonImportsCheck = [ "flufl.i18n" ];
disabled = pythonOlder "3.7";

src = fetchPypi {
pname = "flufl.i18n";
inherit version;
hash = "sha256-wKz6aggkJ9YBJ+o75XjC4Ddnn+Zi9hlYDnliwTc7DNs=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov=flufl --cov-report=term --cov-report=xml" ""
'';

nativeBuildInputs = [ pdm-pep517 ];

propagatedBuildInputs = [ atpublic ];

pythonImportsCheck = [ "flufl.i18n" ];

nativeCheckInputs = [
pytestCheckHook
sybil
];

pythonNamespaces = [
"flufl"
];

meta = with lib; {
description = "A high level API for internationalizing Python libraries and applications";
homepage = "https://gitlab.com/warsaw/flufl.i18n";
Expand Down

0 comments on commit 4eea3ae

Please sign in to comment.