Merge pull request #282811 from fabaff/monty-fix
python311Packages.monty: refactor
This commit is contained in:
commit
89a27bb107
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user