diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-02-03 14:11:53 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-02-03 17:43:31 +0100 |
commit | 29e8365d2f4538f19b320f2139b76e44d60d51c9 (patch) | |
tree | ec64034964dbd9c81287dafab8daf6a55ebaaacf /pkgs/development/python-modules/packet-python | |
parent | 84fe4095b8b2b0737bc07721b0de281869a0ad10 (diff) | |
download | nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar.gz nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar.bz2 nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar.lz nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar.xz nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.tar.zst nixlib-29e8365d2f4538f19b320f2139b76e44d60d51c9.zip |
python.pkgs.packet-python: move expression
Diffstat (limited to 'pkgs/development/python-modules/packet-python')
-rw-r--r-- | pkgs/development/python-modules/packet-python/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/packet-python/default.nix b/pkgs/development/python-modules/packet-python/default.nix new file mode 100644 index 000000000000..6d2d7f368b37 --- /dev/null +++ b/pkgs/development/python-modules/packet-python/default.nix @@ -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 ]; + }; +} \ No newline at end of file |