python312Packages.python-jsonrpc-server: refactor
This commit is contained in:
parent
13e7885af1
commit
9393653b30
@ -2,46 +2,54 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
mock,
|
||||
pytest-cov,
|
||||
coverage,
|
||||
future,
|
||||
pytest-cov-stub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
ujson,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-jsonrpc-server";
|
||||
version = "0.4.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "palantir";
|
||||
repo = "python-jsonrpc-server";
|
||||
rev = version;
|
||||
sha256 = "0pcf50qvcxqnz3db58whqd8z89cdph19pfs1whgfm0zmwbwk0lw6";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-hlMw+eL1g+oe5EG7mwK8jSX0UcOQo7La+BZ3tjEojl0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/version=versioneer.get_version(),/version=\"$version\",/g" setup.py
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
mock
|
||||
pytest-cov
|
||||
coverage
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
future
|
||||
ujson
|
||||
dependencies = [ ujson ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytest-cov-stub
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyls_jsonrpc" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for erver implementation of the JSON RPC 2.0 protocol";
|
||||
homepage = "https://github.com/palantir/python-jsonrpc-server";
|
||||
description = "Python 2 and 3 asynchronous JSON RPC server";
|
||||
changelog = "https://github.com/palantir/python-jsonrpc-server/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user