1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools-scm,
6 cppy,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "atom";
13 version = "0.11.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "nucleic";
20 repo = "atom";
21 tag = version;
22 hash = "sha256-3Xk4CM8Cnkc0lIdjJUYs/6UTqqpPALrUa3DpKD40og8=";
23 };
24
25 nativeBuildInputs = [ setuptools-scm ];
26
27 buildInputs = [ cppy ];
28
29 preCheck = ''
30 rm -rf atom
31 '';
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "atom.api" ];
36
37 meta = with lib; {
38 description = "Memory efficient Python objects";
39 homepage = "https://github.com/nucleic/atom";
40 changelog = "https://github.com/nucleic/atom/releases/tag/${version}";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ bhipple ];
43 };
44}