1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 pytestCheckHook,
8}:
9
10buildPythonPackage {
11 pname = "flask-silk";
12 version = "0.2-unstable-2018-06-14";
13 pyproject = true;
14
15 # master fixes flask import syntax and has no major changes
16 # new release requested: https://github.com/sublee/flask-silk/pull/6
17 src = fetchFromGitHub {
18 owner = "sublee";
19 repo = "flask-silk";
20 rev = "3a8166550f9a0ec52edae7bf31d9818c4c15c531";
21 hash = "sha256-AFbGp/d+3Tci8Kj2BuT7GPdKQRBVb6PV1U6KwnH89FY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ flask ];
27
28 pythonImportsCheck = [ "flask_silk" ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pytestFlagsArray = [ "test.py" ];
33
34 disabledTests = [
35 # requires network access
36 "test_subdomain"
37 ];
38
39 meta = {
40 description = "Adds silk icons to your Flask application or module, or extension";
41 license = lib.licenses.bsd3;
42 teams = [ lib.teams.sage ];
43 homepage = "https://github.com/sublee/flask-silk";
44 };
45}