Skip to content

Commit

Permalink
Merge pull request #213123 from fabaff/monty-fix
Browse files Browse the repository at this point in the history
python310Packages.monty: disable failing tests
  • Loading branch information
fabaff authored Jan 28, 2023
2 parents 0c2899e + f057e2c commit 5ca3bd1
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions pkgs/development/python-modules/monty/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, msgpack
, pytestCheckHook
, numpy
, pandas
, pydantic
, pymongo
, pytestCheckHook
, pythonOlder
, ruamel-yaml
, tqdm
}:

buildPythonPackage rec {
pname = "monty";
version = "2022.9.9";
disabled = pythonOlder "3.5"; # uses type annotations
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "materialsvirtuallab";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-7ToNiRSWxe9nNcaWWmS6bhVqWMEwXN4uiwtjAmuK5qw=";
hash = "sha256-7ToNiRSWxe9nNcaWWmS6bhVqWMEwXN4uiwtjAmuK5qw=";
};

postPatch = ''
Expand All @@ -30,17 +32,29 @@ buildPythonPackage rec {
'';

propagatedBuildInputs = [
msgpack
ruamel-yaml
tqdm
msgpack
];

nativeCheckInputs = [
pytestCheckHook
numpy
pandas
pydantic
pymongo
pytestCheckHook
];

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"
];

meta = with lib; {
Expand All @@ -51,6 +65,7 @@ buildPythonPackage rec {
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 ];
};
Expand Down

0 comments on commit 5ca3bd1

Please sign in to comment.