blob: 416aaf75c985ad855c32420d56fa786356f6a8c3 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
gitUpdater,
pytestCheckHook,
libcst,
pyyaml,
}:
buildPythonPackage rec {
pname = "trubar";
version = "0.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "janezd";
repo = "trubar";
tag = version;
hash = "sha256-ChKmeACEMnFcMYSdkdVlFiE3td171ihUS2A+qsP5ASk=";
};
build-system = [ setuptools ];
dependencies = [
libcst
pyyaml
];
pythonImportsCheck = [ "trubar" ];
nativeCheckInputs = [ pytestCheckHook ];
passthru.updateScript = gitUpdater { };
meta = {
description = "Utility for translation of strings and f-strings in Python files";
homepage = "https://github.com/janezd/trubar";
changelog = "https://github.com/janezd/trubar/releases/tag/${version}";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers.lucasew ];
};
}
|