diff options
| author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-05-07 21:45:59 +0200 |
|---|---|---|
| committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-05-07 17:23:36 -0700 |
| commit | adb0cf013fa7fdc595eb42a48734ea01fb0eed46 (patch) | |
| tree | 8dbb24ae084711c1a1fcee85ed0a9991f897d043 /pkgs/development/python-modules | |
| parent | 96cf2b85826930ed52dfa7a69859f0915c77f3ab (diff) | |
python3Packages.monty: add missing pydanctic and tqdm dependencies
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/monty/default.nix | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/monty/default.nix b/pkgs/development/python-modules/monty/default.nix index a2398ce750dd..53f139dde343 100644 --- a/pkgs/development/python-modules/monty/default.nix +++ b/pkgs/development/python-modules/monty/default.nix @@ -1,22 +1,20 @@ { lib , buildPythonPackage , fetchFromGitHub -, isPy27 +, pythonOlder +, msgpack , nose , numpy -, six -, ruamel_yaml -, msgpack -, coverage -, coveralls +, pydantic , pymongo -, lsof +, ruamel_yaml +, tqdm }: buildPythonPackage rec { pname = "monty"; version = "2021.3.3"; - disabled = isPy27; # uses type annotations + disabled = pythonOlder "3.5"; # uses type annotations # No tests in Pypi src = fetchFromGitHub { @@ -26,21 +24,30 @@ buildPythonPackage rec { sha256 = "1nbv0ys0fv70rgzskkk8gsfr9dsmm7ykim5wv36li840zsj83b1l"; }; - checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo]; - propagatedBuildInputs = [ six ruamel_yaml ]; + propagatedBuildInputs = [ + ruamel_yaml + tqdm + msgpack + ]; - # test suite tries to decode bytes, but msgpack now returns a str - # https://github.com/materialsvirtuallab/monty/pull/121 - postPatch = '' - substituteInPlace tests/test_serialization.py \ - --replace ".decode('utf-8')" "" - ''; + checkInputs = [ + nose + numpy + pydantic + pymongo + ]; preCheck = '' substituteInPlace tests/test_os.py \ --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' ''; + checkPhase = '' + runHook preCheck + nosetests -v + runHook postCheck + ''; + 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 = " |
