42 lines
800 B
Nix
42 lines
800 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
python3,
|
||
|
|
fetchPypi,
|
||
|
|
}:
|
||
|
|
|
||
|
|
python3.pkgs.buildPythonPackage rec {
|
||
|
|
pname = "wlc";
|
||
|
|
version = "1.15";
|
||
|
|
pyproject = true;
|
||
|
|
|
||
|
|
src = fetchPypi {
|
||
|
|
inherit pname version;
|
||
|
|
hash = "sha256-0T8cMq5Mrv/Ygo6BfYho3sjFuu8dYZyUMtJc5gabuG4=";
|
||
|
|
};
|
||
|
|
|
||
|
|
build-system = with python3.pkgs; [ setuptools ];
|
||
|
|
|
||
|
|
dependencies = with python3.pkgs; [
|
||
|
|
argcomplete
|
||
|
|
python-dateutil
|
||
|
|
requests
|
||
|
|
pyxdg
|
||
|
|
responses
|
||
|
|
twine
|
||
|
|
];
|
||
|
|
|
||
|
|
nativeCheckInputs = with python3.pkgs; [
|
||
|
|
pytestCheckHook
|
||
|
|
];
|
||
|
|
|
||
|
|
pythonImportsCheck = [ "wlc" ];
|
||
|
|
|
||
|
|
meta = with lib; {
|
||
|
|
description = "Weblate commandline client using Weblate's REST API";
|
||
|
|
homepage = "https://github.com/WeblateOrg/wlc";
|
||
|
|
license = licenses.gpl3Plus;
|
||
|
|
maintainers = with maintainers; [ paperdigits ];
|
||
|
|
mainProgram = "wlc";
|
||
|
|
};
|
||
|
|
}
|