3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
50 lines
821 B
Nix
50 lines
821 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools-scm
|
|
, future
|
|
, cppy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "atom";
|
|
version = "0.8.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nucleic";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-odthydKmgbOXYT8YAIn5MlFfH/BD8MMkuRYaiI8OZD4=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
cppy
|
|
];
|
|
|
|
preCheck = ''
|
|
rm -rf atom
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"atom.api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Memory efficient Python objects";
|
|
maintainers = [ maintainers.bhipple ];
|
|
homepage = "https://github.com/nucleic/atom";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|