aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix
new file mode 100644
index 000000000000..823f834b417c
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/swagger-ui-bundle/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildPythonPackage, fetchPypi, jinja2, flake8 }:
+
+buildPythonPackage rec {
+ pname = "swagger-ui-bundle";
+ version = "0.0.6";
+
+ src = fetchPypi {
+ pname = "swagger_ui_bundle";
+ inherit version;
+ sha256 = "1lqxz7q9l2iwf7w11nhw5lnglsh1lgcvq8ydvhabkcc76il3ndy5";
+ };
+
+ # 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;
+
+ meta = with stdenv.lib; {
+ description = "bundled swagger-ui pip package";
+ homepage = "https://github.com/dtkav/swagger_ui_bundle";
+ license = licenses.asl20;
+ maintainers = with maintainers; [ elohmeier ];
+ };
+}