nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 gettext,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage (finalAttrs: {
11 pname = "setuptools-gettext";
12 version = "0.1.16";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "breezy-team";
17 repo = "setuptools-gettext";
18 tag = "v${finalAttrs.version}";
19 hash = "sha256-N59Hx6CyOzAin8KcMTAD++HFLDdJnJbql/U3fO2F3DU=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ setuptools ];
25
26 pythonImportsCheck = [ "setuptools_gettext" ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 gettext
31 ];
32
33 meta = {
34 changelog = "https://github.com/breezy-team/setuptools-gettext/releases/tag/${finalAttrs.src.tag}";
35 description = "Setuptools plugin for building mo files";
36 homepage = "https://github.com/breezy-team/setuptools-gettext";
37 license = lib.licenses.gpl2Plus;
38 maintainers = with lib.maintainers; [ tomasajt ];
39 };
40})