nixpkgs/pkgs/development/python-modules/atom/default.nix
2024-07-30 14:56:55 +02:00

45 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
cppy,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "atom";
version = "0.10.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nucleic";
repo = "atom";
rev = "refs/tags/${version}";
hash = "sha256-wRVmCyqMwDs1thnRXYH6z1a/qCubw8CVUhaEMqLtiSM=";
};
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 ];
};
}