nixpkgs/pkgs/development/python-modules/atom/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
881 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, future
, cppy
, pytestCheckHook
, pythonOlder
}:
2018-10-10 01:02:27 +00:00
buildPythonPackage rec {
pname = "atom";
version = "0.10.0";
format = "pyproject";
2018-10-10 01:02:27 +00:00
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "nucleic";
repo = pname;
2022-06-14 03:16:17 +00:00
rev = "refs/tags/${version}";
hash = "sha256-l+4/bk3V5gMa7CXSHSo8aWmipur0xheL2FopHuiLcpQ=";
2018-10-10 01:02:27 +00:00
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
2018-10-10 01:02:27 +00:00
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
cppy
];
preCheck = ''
rm -rf atom
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"atom.api"
];
2018-10-10 01:02:27 +00:00
meta = with lib; {
description = "Memory efficient Python objects";
homepage = "https://github.com/nucleic/atom";
2018-10-10 01:02:27 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ bhipple ];
2018-10-10 01:02:27 +00:00
};
}