567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
899 B
Nix
50 lines
899 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cerberus,
|
|
events,
|
|
fetchFromGitHub,
|
|
flask,
|
|
pymongo,
|
|
setuptools,
|
|
simplejson,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eve";
|
|
version = "2.2.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyeve";
|
|
repo = "eve";
|
|
tag = "v${version}";
|
|
hash = "sha256-58PYwDzeQMmCLdqJfxp153+/AYNzO4JNzs7llyr7GJc=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "events" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cerberus
|
|
events
|
|
flask
|
|
pymongo
|
|
simplejson
|
|
];
|
|
|
|
pythonImportsCheck = [ "eve" ];
|
|
|
|
# Tests call a running mongodb instance
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Open source Python REST API framework designed for human beings";
|
|
homepage = "https://python-eve.org/";
|
|
changelog = "https://github.com/pyeve/eve/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|