blob: fdf4b3a50048e123d3c1e618bdd363b3a6085e45 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
mock,
netaddr,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyeapi";
version = "1.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "arista-eosplus";
repo = "pyeapi";
tag = "v${version}";
hash = "sha256-eGNBQSnYMC9YVCw5mBRH6XRq139AcqFm6HnO2FUzLEE=";
};
build-system = [ setuptools ];
dependencies = [ netaddr ];
nativeCheckInputs = [
mock
pytestCheckHook
];
enabledTestPaths = [ "test/unit" ];
pythonImportsCheck = [ "pyeapi" ];
meta = {
description = "Client for Arista eAPI";
homepage = "https://github.com/arista-eosplus/pyeapi";
changelog = "https://github.com/arista-eosplus/pyeapi/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ astro ];
};
}
|