pythonPackages.packet-python: 1.37.1 -> 1.38.2

This commit is contained in:
Manuel Mendez 2019-05-30 17:23:56 -04:00
parent 75a82b54a1
commit 70a6962d06
1 changed files with 7 additions and 11 deletions

View File

@ -3,29 +3,25 @@
, fetchPypi , fetchPypi
, requests , requests
, python , python
, fetchpatch
# For tests/setup.py
, pytestrunner
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "packet-python"; pname = "packet-python";
version = "1.37.1"; version = "1.38.2";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "316941d2473c0f42ac17ac89e9aa63a023bb96f35cf8eafe9e091ea424892778"; sha256 = "1lh97la51fa3nxjl4ngsanrxw6qq5jwwn0dxj2f0946m043200xl";
}; };
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [ requests ];
checkPhase = '' checkPhase = ''
${python.interpreter} -m unittest discover -s test ${python.interpreter} -m unittest discover -s test
''; '';
patches = [
(fetchpatch {
url = https://github.com/packethost/packet-python/commit/361ad0c60d0bfce2a992eefd17e917f9dcf36400.patch;
sha256 = "1cmzyq0302y4cqmim6arnvn8n620qysq458g2w5aq4zj1vz1q9g1";
})
];
# Not all test files are included in archive # Not all test files are included in archive
doCheck = false; doCheck = false;
@ -35,4 +31,4 @@ buildPythonPackage rec {
license = lib.licenses.lgpl3; license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [ dipinhora ]; maintainers = with lib.maintainers; [ dipinhora ];
}; };
} }