58 lines
1008 B
Nix
58 lines
1008 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flask,
|
|
lxml,
|
|
numpy,
|
|
pandas,
|
|
pyyaml,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "succulent";
|
|
version = "0.4.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "firefly-cpp";
|
|
repo = "succulent";
|
|
tag = version;
|
|
hash = "sha256-3cqU1iYxvMyx0hCVl6r4RZARpsWNckXZgeBNq0kokuw=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"flask"
|
|
"numpy"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
lxml
|
|
numpy
|
|
pandas
|
|
pyyaml
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "succulent" ];
|
|
|
|
meta = with lib; {
|
|
description = "Collect POST requests";
|
|
homepage = "https://github.com/firefly-cpp/succulent";
|
|
changelog = "https://github.com/firefly-cpp/succulent/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ firefly-cpp ];
|
|
};
|
|
}
|