about summary refs log tree commit diff
path: root/pkgs/development/python-modules/swagger-ui-bundle/default.nix
blob: 9922e081934931f1b5bb60e7d5f4e87338d0d655 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, fetchPypi, jinja2, flake8 }:

buildPythonPackage rec {
  pname = "swagger-ui-bundle";
  version = "0.0.5";

  src = fetchPypi {
    pname = "swagger_ui_bundle";
    inherit version;
    sha256 = "0v69v94mzzb63ciwpz3n8jwxqcyll3fsyx087s9k9q543zdqzbh1";
  };

  # 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 ];
  };
}