Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 82 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, buildPythonPackage, fetchFromGitHub, msgpack, numpy, pandas, pydantic, pymongo, pytestCheckHook, pythonOlder, ruamel-yaml, setuptools, setuptools-scm, torch, tqdm,}:
buildPythonPackage rec { pname = "monty"; version = "2024.7.29"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "materialsvirtuallab"; repo = "monty"; rev = "refs/tags/v${version}"; hash = "sha256-ydt1T2agKUCBiMZ4uvQ3qshEiAQ0PP9EjPiWDXgH3Wo="; };
postPatch = '' substituteInPlace tests/test_os.py \ --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' '';
nativeBuildInputs = [ setuptools setuptools-scm ];
propagatedBuildInputs = [ msgpack ruamel-yaml tqdm ];
nativeCheckInputs = [ numpy pandas pydantic pymongo pytestCheckHook torch ];
pythonImportsCheck = [ "monty" ];
disabledTests = [ # Test file was removed and re-added after 2022.9.9 "test_reverse_readfile_gz" "test_Path_objects" "test_zopen" "test_zpath" # flaky, precision/rounding error "TestJson.test_datetime" ];
meta = with lib; { 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/v${version}"; license = licenses.mit; maintainers = with maintainers; [ psyanticy ]; };}