16 buildPythonPackage rec {
19 disabled = isPy27; # uses type annotations
22 src = fetchFromGitHub {
23 owner = "materialsvirtuallab";
26 sha256 = "1wxqxp0j7i6czdpr2r1imgmy3qbgn2l7d4za2h1lg3hllvx6jra1";
29 checkInputs = [ lsof nose numpy msgpack coverage coveralls pymongo];
30 propagatedBuildInputs = [ six ruamel_yaml ];
32 # test suite tries to decode bytes, but msgpack now returns a str
33 # https://github.com/materialsvirtuallab/monty/pull/121
35 substituteInPlace tests/test_serialization.py \
36 --replace ".decode('utf-8')" ""
40 substituteInPlace tests/test_os.py \
41 --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
45 description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
47 Monty implements supplementary useful functions for Python that are not part of the
48 standard library. Examples include useful utilities like transparent support for zipped files, useful design
49 patterns such as singleton and cached_class, and many more.
51 homepage = "https://github.com/materialsvirtuallab/monty";
52 license = licenses.mit;
53 maintainers = with maintainers; [ psyanticy ];