at 23.11-beta 881 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools-scm 5, future 6, cppy 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "atom"; 13 version = "0.10.3"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "nucleic"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-NXjvRVYcWU9p7b8y2ICOzYe6TeMh1S70Edy/JvTG7a4="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 buildInputs = [ 32 cppy 33 ]; 34 35 preCheck = '' 36 rm -rf atom 37 ''; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ 44 "atom.api" 45 ]; 46 47 meta = with lib; { 48 description = "Memory efficient Python objects"; 49 homepage = "https://github.com/nucleic/atom"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ bhipple ]; 52 }; 53}