Merge pull request #68167 from jonringer/bump-requests-mock
pythonPackages.requests-mock: 1.5.2 -> 1.7.0
This commit is contained in:
commit
59d3c9618d
27
pkgs/development/python-modules/purl/default.nix
Normal file
27
pkgs/development/python-modules/purl/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub
|
||||||
|
, nose
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "purl";
|
||||||
|
version = "1.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "codeinthehole";
|
||||||
|
repo = "purl";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0vi7xdm2xc1rbqrz5jwpr7x7dnkcrbjf1mb4w1q2c2f8jca0kk0g";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Immutable URL class for easy URL-building and manipulation";
|
||||||
|
homepage = "https://github.com/codeinthehole/purl";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ jonringer ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,21 +1,33 @@
|
|||||||
{ buildPythonPackage, fetchPypi, python
|
{ lib, buildPythonPackage, fetchPypi, python
|
||||||
, mock, testrepository, testtools
|
, mock
|
||||||
, requests, six }:
|
, purl
|
||||||
|
, requests
|
||||||
|
, six
|
||||||
|
, testrepository
|
||||||
|
, testtools
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "requests-mock";
|
pname = "requests-mock";
|
||||||
version = "1.5.2";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "7a5fa99db5e3a2a961b6f20ed40ee6baeff73503cf0a553cc4d679409e6170fb";
|
sha256 = "0ij6ir5cy0gpy5xw4sykxz320ndi26np6flx9yg9mimkv0nl1lw8";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ mock testrepository testtools ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests six ];
|
propagatedBuildInputs = [ requests six ];
|
||||||
|
|
||||||
|
checkInputs = [ mock purl testrepository testtools ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Mock out responses from the requests package";
|
||||||
|
homepage = "https://requests-mock.readthedocs.io";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = [ ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -839,6 +839,8 @@ in {
|
|||||||
|
|
||||||
pure-python-adb-homeassistant = callPackage ../development/python-modules/pure-python-adb-homeassistant { };
|
pure-python-adb-homeassistant = callPackage ../development/python-modules/pure-python-adb-homeassistant { };
|
||||||
|
|
||||||
|
purl = callPackage ../development/python-modules/purl { };
|
||||||
|
|
||||||
pymystem3 = callPackage ../development/python-modules/pymystem3 { };
|
pymystem3 = callPackage ../development/python-modules/pymystem3 { };
|
||||||
|
|
||||||
pymysql = callPackage ../development/python-modules/pymysql { };
|
pymysql = callPackage ../development/python-modules/pymysql { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user