1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pythonOlder,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "smoke-zephyr";
12 version = "2.0.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "zeroSteiner";
19 repo = "smoke-zephyr";
20 tag = "v${version}";
21 hash = "sha256-XZj8sxEWYv5z1x7LKb0T3L7MWSZbWr7lAIyjWekN+WY=";
22 };
23
24 postPatch = ''
25 substituteInPlace tests/utilities.py \
26 --replace-fail "assertEquals" "assertEqual"
27 '';
28
29 build-system = [ setuptools ];
30
31 nativeCheckInputs = [ unittestCheckHook ];
32
33 pythonImportsCheck = [ "smoke_zephyr" ];
34
35 meta = {
36 description = "Python utility collection";
37 homepage = "https://github.com/zeroSteiner/smoke-zephyr";
38 changelog = "https://github.com/zeroSteiner/smoke-zephyr/releases/tag/v${version}";
39 license = lib.licenses.bsd3;
40 maintainers = with lib.maintainers; [ fab ];
41 };
42}