commit
d57af7fa69
@ -0,0 +1,39 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, requests |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "json-stream"; |
||||
version = "1.3.0"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
hash = "sha256-J5DBa8zeandkDIXpEaRN6cneZIIG2aRHS5zjmM/H0Uw="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ |
||||
requests |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"json_stream" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Streaming JSON parser"; |
||||
homepage = "https://github.com/daggaz/json-stream"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
@ -0,0 +1,41 @@ |
||||
{ lib |
||||
, fetchFromGitHub |
||||
, python3 |
||||
}: |
||||
|
||||
python3.pkgs.buildPythonApplication rec { |
||||
pname = "mitmproxy2swagger"; |
||||
version = "0.6.0"; |
||||
format = "pyproject"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "alufers"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-NTxRq7lIm3Y5RxOxdXiKVv39Co8GG9YE2kuEryRUw1Y="; |
||||
}; |
||||
|
||||
nativeBuildInputs = with python3.pkgs; [ |
||||
poetry-core |
||||
]; |
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ |
||||
json-stream |
||||
mitmproxy |
||||
ruamel-yaml |
||||
]; |
||||
|
||||
# No tests available |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"mitmproxy2swagger" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Tool to automagically reverse-engineer REST APIs"; |
||||
homepage = "https://github.com/alufers/mitmproxy2swagger"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue