Merge pull request #282811 from fabaff/monty-fix

python311Packages.monty: refactor
This commit is contained in:
Nick Cao 2024-01-22 09:59:10 -05:00 committed by GitHub
commit 89a27bb107
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, ruamel-yaml , ruamel-yaml
, setuptools
, setuptools-scm
, torch , torch
, tqdm , tqdm
}: }:
@ -16,13 +18,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "monty"; pname = "monty";
version = "2023.11.3"; version = "2023.11.3";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "materialsvirtuallab"; owner = "materialsvirtuallab";
repo = pname; repo = "monty";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-SENrAHCCWYEMWqPQSy61E8bMYkCBJepK5otb7B7UGXA="; hash = "sha256-SENrAHCCWYEMWqPQSy61E8bMYkCBJepK5otb7B7UGXA=";
}; };
@ -32,6 +34,11 @@ buildPythonPackage rec {
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
''; '';
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
msgpack msgpack
ruamel-yaml ruamel-yaml