python3Packages.swagger-ui-bundle: 0.0.9 -> 1.1.0

This commit is contained in:
Martin Weinelt 2023-12-03 00:03:06 +01:00
parent 22036d4b48
commit cd820c49e2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,22 +1,37 @@
{ lib, buildPythonPackage, fetchPypi, jinja2, flake8 }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build-system
, poetry-core
# dependencies
, importlib-resources
, jinja2
}:
buildPythonPackage rec {
pname = "swagger-ui-bundle";
version = "0.0.9";
format = "setuptools";
version = "1.1.0";
pyproject = true;
src = fetchPypi {
pname = "swagger_ui_bundle";
inherit version;
sha256 = "b462aa1460261796ab78fd4663961a7f6f347ce01760f1303bbbdf630f11f516";
hash = "sha256-IGc8NDHIcz1dFhXs952azzDP91ICrK8hp9nH9IlxRSk=";
};
# patch away unused test requirements since package contains no tests
postPatch = ''
substituteInPlace setup.py --replace "setup_requires=['pytest-runner', 'flake8']" "setup_requires=[]"
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ jinja2 ];
propagatedBuildInputs = [
jinja2
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
# package contains no tests
doCheck = false;