2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, jinja2, flake8 }:
|
2018-12-21 09:09:59 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "swagger-ui-bundle";
|
2020-04-13 23:24:28 +01:00
|
|
|
version = "0.0.6";
|
2018-12-21 09:09:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "swagger_ui_bundle";
|
|
|
|
inherit version;
|
2020-04-13 23:24:28 +01:00
|
|
|
sha256 = "1lqxz7q9l2iwf7w11nhw5lnglsh1lgcvq8ydvhabkcc76il3ndy5";
|
2018-12-21 09:09:59 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-21 09:09:59 +00:00
|
|
|
description = "bundled swagger-ui pip package";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dtkav/swagger_ui_bundle";
|
2018-12-21 09:09:59 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|