nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 aiohttp,
7 jinja2,
8 markupsafe,
9 pyyaml,
10}:
11
12buildPythonPackage rec {
13 pname = "aiohttp-swagger";
14 version = "1.0.15";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "cr0hn";
19 repo = "aiohttp-swagger";
20 tag = version;
21 hash = "sha256-M43sNpbXWXFRTd549cZhvhO35nBB6OH+ki36BzSk87Q=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 dependencies = [
29 aiohttp
30 jinja2
31 markupsafe
32 pyyaml
33 ];
34
35 pythonRelaxDeps = [
36 "markupsafe"
37 "jinja2"
38 ];
39
40 pythonImportsCheck = [ "aiohttp_swagger" ];
41
42 meta = {
43 description = "Swagger API Documentation builder for aiohttp";
44 homepage = "https://github.com/cr0hn/aiohttp-swagger";
45 license = lib.licenses.mit;
46 };
47}