nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 50 lines 806 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools-scm 5, future 6, cppy 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "atom"; 12 version = "0.8.0"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "nucleic"; 17 repo = pname; 18 rev = version; 19 hash = "sha256-Xby3QopKw7teShMi80RMG8YdhOOvfQb5vwOuFEUTxHQ="; 20 }; 21 22 SETUPTOOLS_SCM_PRETEND_VERSION = version; 23 24 nativeBuildInputs = [ 25 setuptools-scm 26 ]; 27 28 buildInputs = [ 29 cppy 30 ]; 31 32 preCheck = '' 33 rm -rf atom 34 ''; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "atom.api" 42 ]; 43 44 meta = with lib; { 45 description = "Memory efficient Python objects"; 46 maintainers = [ maintainers.bhipple ]; 47 homepage = "https://github.com/nucleic/atom"; 48 license = licenses.bsd3; 49 }; 50}