1{
2 buildPythonPackage,
3 lib,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 scikit-build,
8 cmake,
9 ninja,
10 python,
11 flaky,
12 hypothesis,
13}:
14
15buildPythonPackage rec {
16 pname = "picologging";
17 version = "0.9.4";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 # 0.9.4 only release on github
22 owner = "microsoft";
23 repo = "picologging";
24 rev = "refs/tags/${version}";
25 hash = "sha256-t75D7aNKAifzeCPwtyKp8LoiXtbbXspRFYnsI0gx+V4=";
26 };
27
28 build-system = [
29 setuptools
30 cmake
31 scikit-build
32 ninja
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 dontUseCmakeConfigure = true;
40
41 dependencies = [
42 flaky
43 hypothesis
44 ];
45
46 pythonImportCheck = [ "picologging" ];
47
48 meta = {
49 homepage = "https://github.com/microsoft/picologging";
50 platforms = lib.platforms.unix;
51 maintainers = with lib.maintainers; [ bot-wxt1221 ];
52 changelog = "https://github.com/microsoft/picologging/releases/tag/${version}";
53 description = "optimized logging library for Python";
54 license = lib.licenses.mit;
55 };
56}