2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pbr,
|
|
|
|
setuptools,
|
2024-09-19 14:19:46 +00:00
|
|
|
importlib-metadata,
|
2024-06-05 15:53:02 +00:00
|
|
|
simplegeneric,
|
|
|
|
netaddr,
|
|
|
|
# Test inputs
|
|
|
|
flask,
|
|
|
|
flask-restful,
|
|
|
|
pecan,
|
|
|
|
sphinx,
|
|
|
|
transaction,
|
|
|
|
webtest,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "wsme";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.12.1";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "WSME";
|
|
|
|
inherit version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-m36yJErzxwSskUte0iGVS7aK3QqLKy84okSwZ7M3mS0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
importlib-metadata
|
2020-09-25 04:45:31 +00:00
|
|
|
simplegeneric
|
2024-09-19 14:19:46 +00:00
|
|
|
netaddr
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
flask
|
|
|
|
flask-restful
|
|
|
|
pecan
|
|
|
|
sphinx
|
|
|
|
transaction
|
|
|
|
webtest
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"wsme/tests"
|
|
|
|
"tests/pecantest"
|
|
|
|
"tests/test_sphinxext.py"
|
|
|
|
"tests/test_flask.py"
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://pythonhosted.org/WSME/";
|
|
|
|
changelog = "https://pythonhosted.org/WSME/changes.html";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|