60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
52 lines
908 B
Nix
52 lines
908 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, future
|
|
, cppy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "atom";
|
|
version = "0.10.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nucleic";
|
|
repo = "atom";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-HoUKU6z+6PPBUsvI4earZG9UXN0PrugAxu/F7WUfUe8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
cppy
|
|
];
|
|
|
|
preCheck = ''
|
|
rm -rf atom
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"atom.api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Memory efficient Python objects";
|
|
homepage = "https://github.com/nucleic/atom";
|
|
changelog = "https://github.com/nucleic/atom/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
};
|
|
}
|