Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / swagger-ui-bundle / default.nix
blob9dbd29739fe85776d7df3db7beaa40d6517d0e07
1 { lib, buildPythonPackage, fetchPypi, jinja2, flake8 }:
3 buildPythonPackage rec {
4   pname = "swagger-ui-bundle";
5   version = "0.0.6";
7   src = fetchPypi {
8     pname = "swagger_ui_bundle";
9     inherit version;
10     sha256 = "1lqxz7q9l2iwf7w11nhw5lnglsh1lgcvq8ydvhabkcc76il3ndy5";
11   };
13   # patch away unused test requirements since package contains no tests
14   postPatch = ''
15     substituteInPlace setup.py --replace "setup_requires=['pytest-runner', 'flake8']" "setup_requires=[]"
16   '';
18   propagatedBuildInputs = [ jinja2 ];
20   # package contains no tests
21   doCheck = false;
23   meta = with lib; {
24     description = "bundled swagger-ui pip package";
25     homepage = "https://github.com/dtkav/swagger_ui_bundle";
26     license = licenses.asl20;
27     maintainers = with maintainers; [ elohmeier ];
28   };