1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 nix-update-script,
8}:
9
10buildPythonPackage rec {
11 pname = "dowhen";
12 version = "0.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "gaogaotiantian";
17 repo = "dowhen";
18 tag = version;
19 hash = "sha256-7eoNe9SvE39J4mwIOxvbU1oh/L7tr/QM1uuBDqWtQu0=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [ "dowhen" ];
27
28 passthru.updateScript = nix-update-script { };
29
30 meta = {
31 description = "Intuitive and low-overhead instrumentation tool for Python";
32 homepage = "https://github.com/gaogaotiantian/dowhen";
33 changelog = "https://github.com/gaogaotiantian/dowhen/releases/tag/${version}";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ moraxyc ];
36 };
37}