mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-28 12:06:38 +03:00
python.pkgs.packet-python: move expression
This commit is contained in:
parent
84fe4095b8
commit
29e8365d2f
2 changed files with 31 additions and 18 deletions
30
pkgs/development/python-modules/packet-python/default.nix
Normal file
30
pkgs/development/python-modules/packet-python/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, requests
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "packet-python";
|
||||||
|
version = "1.33";
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0bmvfmvjm8jx0y8sv0jf5mhv0h3v8idx0sc5myxs7ig200584dd3";
|
||||||
|
};
|
||||||
|
propagatedBuildInputs = [ requests ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest discover -s test
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Not all test files are included in archive
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A Python client for the Packet API.";
|
||||||
|
homepage = "https://github.com/packethost/packet-python";
|
||||||
|
license = lib.licenses.lgpl3;
|
||||||
|
maintainers = with lib.maintainers; [ dipinhora ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -21908,24 +21908,7 @@ EOF
|
||||||
|
|
||||||
whoosh = callPackage ../development/python-modules/whoosh { };
|
whoosh = callPackage ../development/python-modules/whoosh { };
|
||||||
|
|
||||||
packet-python = buildPythonPackage rec {
|
packet-python = callPackage ../development/python-modules/packet-python { };
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "packet-python";
|
|
||||||
version = "1.33";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://pypi.python.org/packages/eb/82/f0506bd964501f958ac6a37e843ccb7bd9e712732886258314d55f0ec710/packet-python-1.33.tar.gz";
|
|
||||||
sha256 = "0bmvfmvjm8jx0y8sv0jf5mhv0h3v8idx0sc5myxs7ig200584dd3";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = with self; [ requests ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A Python client for the Packet API.";
|
|
||||||
homepage = "https://github.com/packethost/packet-python";
|
|
||||||
license = licenses.lgpl3;
|
|
||||||
maintainers = with maintainers; [ dipinhora ];
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pwntools = callPackage ../development/python-modules/pwntools { };
|
pwntools = callPackage ../development/python-modules/pwntools { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue