summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/flask-webtest/default.nix
blob: ca6eca5564c2ad904048609a25cbc4596177a1d6 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  flask,
  webtest,
  blinker,
  flask-sqlalchemy,
  greenlet,
}:

buildPythonPackage rec {
  pname = "flask-webtest";
  version = "0.1.6";
  pyproject = true;

  # Pypi tarball doesn't include version.py
  src = fetchFromGitHub {
    owner = "level12";
    repo = "flask-webtest";
    tag = version;
    hash = "sha256-wcEc9j62bQXAmXczsunITQP3sU040d6Ws8cz0w7+5r4=";
  };

  build-system = [ setuptools ];

  dependencies = [
    flask
    webtest
    blinker
  ];

  nativeCheckInputs = [
    flask-sqlalchemy
    greenlet
  ];

  pythonImportsCheck = [ "flask_webtest" ];

  meta = {
    description = "Utilities for testing Flask applications with WebTest";
    homepage = "https://github.com/level12/flask-webtest";
    changelog = "https://github.com/level12/flask-webtest/blob/${src.rev}/changelog.rst";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ erictapen ];
  };
}