blob: 2c6f786e0a75a31655396b8e9d6c05a7e9d3d03a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
pytest-asyncio,
pytest-cov-stub,
pytest-httpserver,
pytestCheckHook,
python-slugify,
python-status,
}:
buildPythonPackage rec {
pname = "simple-rest-client";
version = "1.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "allisson";
repo = "python-simple-rest-client";
rev = version;
hash = "sha256-IaLo7nBMIabi4ZjZ4ZLJliCL/dzidaCBCmn0cq7Fzdw=";
};
propagatedBuildInputs = [
httpx
python-slugify
python-status
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytest-httpserver
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
substituteInPlace requirements-dev.txt \
--replace "asyncmock" ""
'';
disabledTestPaths = [ "tests/test_decorators.py" ];
pythonImportsCheck = [ "simple_rest_client" ];
meta = {
description = "Simple REST client for Python";
homepage = "https://github.com/allisson/python-simple-rest-client";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|