pythonPackages.monty: init at 1.0.2

+40 -1
+37
pkgs/development/python-modules/monty/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchFromGitHub, nose, numpy, six, ruamel_yaml, msgpack-python, coverage, coveralls, pymongo, lsof }: 2 + 3 + buildPythonPackage rec { 4 + pname = "monty"; 5 + version = "1.0.2"; 6 + 7 + # No tests in Pypi 8 + src = fetchFromGitHub { 9 + owner = "materialsvirtuallab"; 10 + repo = pname; 11 + rev = "v${version}"; 12 + sha256 = "0ss70fanavqdpj56yymj06lacgnknb4ap39m2q28v9lz32cs6xdg"; 13 + }; 14 + 15 + propagatedBuildInputs = [ nose numpy six ruamel_yaml msgpack-python coverage coveralls pymongo lsof ]; 16 + 17 + preCheck = '' 18 + substituteInPlace tests/test_os.py \ 19 + --replace 'def test_which(self):' '#' \ 20 + --replace 'py = which("python")' '#' \ 21 + --replace 'self.assertEqual(os.path.basename(py), "python")' '#' \ 22 + --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' \ 23 + --replace 'self.assertIs(which("non_existent_exe"), None)' '#' \ 24 + ''; 25 + 26 + meta = with stdenv.lib; { 27 + longDescription = " 28 + Monty implements supplementary useful functions for Python that are not part of the 29 + standard library. Examples include useful utilities like transparent support for zipped files, useful design 30 + patterns such as singleton and cached_class, and many more. 31 + "; 32 + homepage = https://github.com/materialsvirtuallab/monty; 33 + license = licenses.mit; 34 + maintainers = with maintainers; [ psyanticy ]; 35 + }; 36 + } 37 +
+3 -1
pkgs/top-level/python-packages.nix
··· 291 291 292 292 logster = callPackage ../development/python-modules/logster { }; 293 293 294 - mail-parser = callPackage ../development/python-modules/mail-parser { }; 294 + mail-parser = callPackage ../development/python-modules/mail-parser { }; 295 + 296 + monty = callPackage ../development/python-modules/monty { }; 295 297 296 298 mpi4py = callPackage ../development/python-modules/mpi4py { 297 299 mpi = pkgs.openmpi;