python3Packages.proxy-py: init at 2.3.1
This commit is contained in:
parent
3cabe0c3da
commit
f79f407954
63
pkgs/development/python-modules/proxy-py/default.nix
Normal file
63
pkgs/development/python-modules/proxy-py/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, openssl
|
||||
, paramiko
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "proxy-py";
|
||||
version = "2.3.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "abhinavsingh";
|
||||
repo = "proxy.py";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-qqwb3t8/xicDGfO6l843qRwh0yUfthnOIhgNeKIbEO4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paramiko
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
openssl
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "typing-extensions==3.7.4.3" "typing-extensions"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"proxy"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python proxy framework";
|
||||
homepage = "https://github.com/abhinavsingh/proxy.py";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -6125,6 +6125,8 @@ in {
|
||||
|
||||
proxmoxer = callPackage ../development/python-modules/proxmoxer { };
|
||||
|
||||
proxy-py = callPackage ../development/python-modules/proxy-py { };
|
||||
|
||||
psautohint = callPackage ../development/python-modules/psautohint { };
|
||||
|
||||
psd-tools = callPackage ../development/python-modules/psd-tools { };
|
||||
|
Loading…
Reference in New Issue
Block a user