tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.packet-python: move expression
Frederik Rietdijk
8 years ago
29e8365d
84fe4095
+31
-18
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
packet-python
default.nix
top-level
python-packages.nix
+30
pkgs/development/python-modules/packet-python/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, requests
5
5
+
, python
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "packet-python";
10
10
+
version = "1.33";
11
11
+
src = fetchPypi {
12
12
+
inherit pname version;
13
13
+
sha256 = "0bmvfmvjm8jx0y8sv0jf5mhv0h3v8idx0sc5myxs7ig200584dd3";
14
14
+
};
15
15
+
propagatedBuildInputs = [ requests ];
16
16
+
17
17
+
checkPhase = ''
18
18
+
${python.interpreter} -m unittest discover -s test
19
19
+
'';
20
20
+
21
21
+
# Not all test files are included in archive
22
22
+
doCheck = false;
23
23
+
24
24
+
meta = {
25
25
+
description = "A Python client for the Packet API.";
26
26
+
homepage = "https://github.com/packethost/packet-python";
27
27
+
license = lib.licenses.lgpl3;
28
28
+
maintainers = with lib.maintainers; [ dipinhora ];
29
29
+
};
30
30
+
}
+1
-18
pkgs/top-level/python-packages.nix
···
21908
21908
21909
21909
whoosh = callPackage ../development/python-modules/whoosh { };
21910
21910
21911
21911
-
packet-python = buildPythonPackage rec {
21912
21912
-
name = "${pname}-${version}";
21913
21913
-
pname = "packet-python";
21914
21914
-
version = "1.33";
21915
21915
-
src = pkgs.fetchurl {
21916
21916
-
url = "https://pypi.python.org/packages/eb/82/f0506bd964501f958ac6a37e843ccb7bd9e712732886258314d55f0ec710/packet-python-1.33.tar.gz";
21917
21917
-
sha256 = "0bmvfmvjm8jx0y8sv0jf5mhv0h3v8idx0sc5myxs7ig200584dd3";
21918
21918
-
};
21919
21919
-
propagatedBuildInputs = with self; [ requests ];
21920
21920
-
21921
21921
-
meta = {
21922
21922
-
description = "A Python client for the Packet API.";
21923
21923
-
homepage = "https://github.com/packethost/packet-python";
21924
21924
-
license = licenses.lgpl3;
21925
21925
-
maintainers = with maintainers; [ dipinhora ];
21926
21926
-
platforms = platforms.all;
21927
21927
-
};
21928
21928
-
};
21911
21911
+
packet-python = callPackage ../development/python-modules/packet-python { };
21929
21912
21930
21913
pwntools = callPackage ../development/python-modules/pwntools { };
21931
21914