Merge pull request #62265 from mmlb/update-packet-python

Update packet python
This commit is contained in:
Matthieu Coudron 2019-06-05 01:33:12 +09:00 committed by GitHub
commit 77057b1b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,31 +3,31 @@
, fetchPypi , fetchPypi
, requests , requests
, python , python
, fetchpatch
# For tests/setup.py
, pytest
, pytestrunner
, requests-mock
}: }:
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 ];
checkInputs = [
checkPhase = '' pytest
${python.interpreter} -m unittest discover -s test pytestrunner
''; requests-mock
patches = [
(fetchpatch {
url = https://github.com/packethost/packet-python/commit/361ad0c60d0bfce2a992eefd17e917f9dcf36400.patch;
sha256 = "1cmzyq0302y4cqmim6arnvn8n620qysq458g2w5aq4zj1vz1q9g1";
})
]; ];
# Not all test files are included in archive checkPhase = ''
doCheck = false; ${python.interpreter} setup.py test
'';
meta = { meta = {
description = "A Python client for the Packet API."; description = "A Python client for the Packet API.";