Skip to content

Commit

Permalink
Merge pull request #334472 from Sigmanificient/wsme-nose
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Aug 22, 2024
2 parents d60f819 + 4845c34 commit cb8e001
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 deletions pkgs/development/python-modules/wsme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,64 @@
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
pbr,
setuptools,
six,
importlib-metadata,
simplegeneric,
netaddr,
pytz,
webob,
# Test inputs
cherrypy,
flask,
flask-restful,
glibcLocales,
nose,
pecan,
sphinx,
transaction,
webtest,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "wsme";
version = "0.12.1";
pyproject = true;

disabled = pythonAtLeast "3.9";

src = fetchPypi {
pname = "WSME";
inherit version;
hash = "sha256-m36yJErzxwSskUte0iGVS7aK3QqLKy84okSwZ7M3mS0=";
};

nativeBuildInputs = [
pbr
setuptools
];
build-system = [ setuptools ];

propagatedBuildInputs = [
netaddr
pytz
nativeBuildInputs = [ pbr ];

dependencies = [
importlib-metadata
simplegeneric
six
webob
netaddr
];

nativeCheckInputs = [
nose
cherrypy
pytestCheckHook
flask
flask-restful
glibcLocales
pecan
sphinx
transaction
webtest
];

# from tox.ini, tests don't work with pytest
checkPhase = ''
nosetests wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py --verbose
'';
pytestFlagsArray = [
"wsme/tests"
"tests/pecantest"
"tests/test_sphinxext.py"
"tests/test_flask.py"
];

meta = with lib; {
meta = {
description = "Simplify the writing of REST APIs, and extend them with additional protocols";
homepage = "https://pythonhosted.org/WSME/";
changelog = "https://pythonhosted.org/WSME/changes.html";
license = licenses.mit;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}

0 comments on commit cb8e001

Please sign in to comment.