nixpkgs/pkgs/development/python-modules/flask-webtest/default.nix
2024-11-21 20:28:03 +01:00

49 lines
986 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
flask,
webtest,
blinker,
flask-sqlalchemy,
greenlet,
}:
buildPythonPackage rec {
pname = "flask-webtest";
version = "0.1.4";
pyproject = true;
# Pypi tarball doesn't include version.py
src = fetchFromGitHub {
owner = "level12";
repo = "flask-webtest";
rev = "refs/tags/${version}";
hash = "sha256-4USNT6HYh49v+euCePYkL1gR6Ul8C0+/xanuYGxKpfM=";
};
build-system = [ setuptools ];
dependencies = [
flask
webtest
blinker
];
nativeCheckInputs = [
flask-sqlalchemy
greenlet
];
pythonImportsCheck = [ "flask_webtest" ];
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ erictapen ];
};
}