nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3,
4 fetchPypi,
5}:
6
7python3.pkgs.buildPythonPackage rec {
8 pname = "wlc";
9 version = "1.17.2";
10 pyproject = true;
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-9BM2xNbiNy8efpkZjEhQ2OSl0RJiOGSut16o8yMA14A=";
15 };
16
17 build-system = with python3.pkgs; [ setuptools ];
18
19 dependencies = with python3.pkgs; [
20 argcomplete
21 python-dateutil
22 requests
23 pyxdg
24 responses
25 twine
26 ];
27
28 nativeCheckInputs = with python3.pkgs; [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "wlc" ];
33
34 meta = {
35 description = "Weblate commandline client using Weblate's REST API";
36 homepage = "https://github.com/WeblateOrg/wlc";
37 license = lib.licenses.gpl3Plus;
38 maintainers = with lib.maintainers; [ paperdigits ];
39 mainProgram = "wlc";
40 };
41}