nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyroute2-core
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "pyroute2-ndb";
10 version = "0.6.9";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 pname = "pyroute2.ndb";
17 inherit version;
18 hash = "sha256-ASk6ycw3dQNMV4xmaxPAHDL1KtrY1JGQ5yJYcJ+OgUE=";
19 };
20
21 propagatedBuildInputs = [
22 pyroute2-core
23 ];
24
25 # pyroute2 sub-modules have no tests
26 doCheck = false;
27
28 pythonImportsCheck = [
29 "pr2modules.ndb"
30 ];
31
32 meta = with lib; {
33 description = "NDB module for pyroute2";
34 homepage = "https://github.com/svinota/pyroute2";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ fab ];
37 platforms = platforms.unix;
38 };
39}