mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, atpublic
|
|
, pdm-pep517
|
|
, pytestCheckHook
|
|
, sybil
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flufl-i18n";
|
|
version = "4.1.1";
|
|
pyproject = true;
|
|
|
|
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";
|
|
changelog = "https://gitlab.com/warsaw/flufl.i18n/-/raw/${version}/docs/NEWS.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|