nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cython,
5 expandvars,
6 fetchPypi,
7 libssh,
8 setuptools,
9 setuptools-scm,
10 toml,
11 wheel,
12}:
13
14buildPythonPackage rec {
15 pname = "ansible-pylibssh";
16 version = "1.3.0";
17 pyproject = true;
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-JD6hsJYrC2secXrA5p2sljbmHsZbNyYMMXsjYMbjDKc=";
22 };
23
24 build-system = [
25 cython
26 expandvars
27 setuptools
28 setuptools-scm
29 toml
30 wheel
31 ];
32
33 dependencies = [ libssh ];
34
35 pythonImportsCheck = [ "pylibsshext" ];
36
37 meta = {
38 description = "Python bindings to client functionality of libssh specific to Ansible use case";
39 homepage = "https://github.com/ansible/pylibssh";
40 changelog = "https://github.com/ansible/pylibssh/releases/tag/v${version}";
41 license = lib.licenses.lgpl21Plus;
42 maintainers = with lib.maintainers; [ wfdewith ];
43 };
44}