blob: bd5bcb62fe6c79fd088e90ebb1b6a4183dbcf065 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ 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; [ ];
};
}
|