2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, jinja2, flake8 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swagger-ui-bundle";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "0.0.9";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "swagger_ui_bundle";
|
|
|
|
inherit version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "b462aa1460261796ab78fd4663961a7f6f347ce01760f1303bbbdf630f11f516";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# patch away unused test requirements since package contains no tests
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "setup_requires=['pytest-runner', 'flake8']" "setup_requires=[]"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
|
|
|
|
# package contains no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "bundled swagger-ui pip package";
|
|
|
|
homepage = "https://github.com/dtkav/swagger_ui_bundle";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|