Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, numpy 6, six 7, ruamel_yaml 8, msgpack-python 9, coverage 10, coveralls 11, pymongo 12, lsof 13}: 14 15buildPythonPackage rec { 16 pname = "monty"; 17 version = "1.0.4"; 18 19 # No tests in Pypi 20 src = fetchFromGitHub { 21 owner = "materialsvirtuallab"; 22 repo = pname; 23 rev = "v${version}"; 24 sha256 = "0vqaaz0dw0ypl6sfwbycpb0qs3ap04c4ghbggklxih66spdlggh6"; 25 }; 26 27 checkInputs = [ lsof nose numpy msgpack-python coverage coveralls pymongo]; 28 propagatedBuildInputs = [ six ruamel_yaml ]; 29 30 preCheck = '' 31 substituteInPlace tests/test_os.py \ 32 --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' 33 ''; 34 35 meta = with lib; { 36 description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems"; 37 longDescription = " 38 Monty implements supplementary useful functions for Python that are not part of the 39 standard library. Examples include useful utilities like transparent support for zipped files, useful design 40 patterns such as singleton and cached_class, and many more. 41 "; 42 homepage = https://github.com/materialsvirtuallab/monty; 43 license = licenses.mit; 44 maintainers = with maintainers; [ psyanticy ]; 45 }; 46}