blob: 03914c36dba2a33d4cc25ab0f78cf7e0745e511e (
plain) (
blame)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "renson-endura-delta";
version = "1.7.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jimmyd-be";
repo = "Renson-endura-delta-library";
rev = "refs/tags/${version}";
hash = "sha256-ndk0qcRUWxUimNHg62UgeYK/MRKQd3e4JQDh9x8vFj8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
pythonImportsCheck = [ "renson_endura_delta" ];
meta = with lib; {
description = "Module to interact with Renson endura delta";
homepage = "https://github.com/jimmyd-be/Renson-endura-delta-library";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|