5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
53 lines
881 B
Nix
53 lines
881 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, future
|
|
, cppy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "atom";
|
|
version = "0.10.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nucleic";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-NXjvRVYcWU9p7b8y2ICOzYe6TeMh1S70Edy/JvTG7a4=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
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";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
};
|
|
}
|