push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
setuptools,
setuptools-scm,
# dependencies
msgpack,
ruamel-yaml,
# optional-dependencies
coverage,
pymongo,
pytest,
pytest-cov,
types-requests,
sphinx,
sphinx-rtd-theme,
orjson,
pandas,
pydantic,
pint,
torch,
tqdm,
invoke,
requests,
# tests
ipython,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "monty";
version = "2025.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "materialsvirtuallab";
repo = "monty";
tag = "v${version}";
hash = "sha256-3UoACKJtPm2BrkJP8z7BFrh3baRyL/S3VwCG3K8AQn0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
msgpack
ruamel-yaml
];
optional-dependencies = rec {
ci = [
coverage
pymongo
pytest
pytest-cov
types-requests
]
++ optional;
dev = [ ipython ];
docs = [
sphinx
sphinx-rtd-theme
];
json = [
orjson
pandas
pydantic
pymongo
]
++ lib.optionals (pythonOlder "3.13") [
pint
torch
];
multiprocessing = [ tqdm ];
optional = dev ++ json ++ multiprocessing ++ serialization;
serialization = [ msgpack ];
task = [
invoke
requests
];
};
nativeCheckInputs = [
ipython
numpy
pandas
pydantic
pymongo
pytestCheckHook
torch
tqdm
];
pythonImportsCheck = [ "monty" ];
meta = {
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
longDescription = "
Monty implements supplementary useful functions for Python that are not part of the
standard library. Examples include useful utilities like transparent support for zipped files, useful design
patterns such as singleton and cached_class, and many more.
";
homepage = "https://github.com/materialsvirtuallab/monty";
changelog = "https://github.com/materialsvirtuallab/monty/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ psyanticy ];
};
}