about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aiohttp-apispec/unstable.nix
blob: 73a28de7b40d31330a702dfb9b3930b85e14fd75 (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
30
31
32
33
34
35
36
37
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, aiohttp, webargs, fetchFromGitHub, callPackage
}:

let
  apispec3 = callPackage ../apispec/3.nix {};
  jinja2 = callPackage ../jinja2/2.nix {};
in
buildPythonPackage rec {
  pname = "aiohttp-apispec";
  version = "unstable-2021-21-08";

  # unstable so we can use latest webargs
  src = fetchFromGitHub {
    owner = "maximdanilchenko";
    repo = "aiohttp-apispec";
    rev = "cfa19646394480dda289f6b7af19b7d50f245d81";
    sha256 = "uEgDRAlMjTa4rvdE3fkORCHIlCLzxPJJ2/m4ZRU3eIQ=";
    fetchSubmodules = false;
  };

  propagatedBuildInputs = [ aiohttp webargs apispec3 jinja2 ];

  pythonImportsCheck = [
    "aiohttp_apispec"
  ];

  # Requires pytest-sanic, currently broken in nixpkgs
  doCheck = false;

  meta = with lib; {
    description = "Build and document REST APIs with aiohttp and apispec";
    homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";
    license = licenses.mit;
    maintainers = [ maintainers.viric ];
  };
}