pythonPackages.monty: 1.0.2 -> 1.0.4
and cleanup broken tests
This commit is contained in:
parent
bbf7666674
commit
d54485a145
@ -1,33 +1,42 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, nose, numpy, six, ruamel_yaml, msgpack-python, coverage, coveralls, pymongo, lsof }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, nose
|
||||||
|
, numpy
|
||||||
|
, six
|
||||||
|
, ruamel_yaml
|
||||||
|
, msgpack-python
|
||||||
|
, coverage
|
||||||
|
, coveralls
|
||||||
|
, pymongo
|
||||||
|
, lsof
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "monty";
|
pname = "monty";
|
||||||
version = "1.0.2";
|
version = "1.0.4";
|
||||||
|
|
||||||
# No tests in Pypi
|
# No tests in Pypi
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "materialsvirtuallab";
|
owner = "materialsvirtuallab";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ss70fanavqdpj56yymj06lacgnknb4ap39m2q28v9lz32cs6xdg";
|
sha256 = "0vqaaz0dw0ypl6sfwbycpb0qs3ap04c4ghbggklxih66spdlggh6";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ nose numpy six ruamel_yaml msgpack-python coverage coveralls pymongo lsof ];
|
checkInputs = [ lsof nose numpy msgpack-python coverage coveralls pymongo];
|
||||||
|
propagatedBuildInputs = [ six ruamel_yaml ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
substituteInPlace tests/test_os.py \
|
substituteInPlace tests/test_os.py \
|
||||||
--replace 'def test_which(self):' '#' \
|
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
|
||||||
--replace 'py = which("python")' '#' \
|
|
||||||
--replace 'self.assertEqual(os.path.basename(py), "python")' '#' \
|
|
||||||
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' \
|
|
||||||
--replace 'self.assertIs(which("non_existent_exe"), None)' '#' \
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
|
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
|
||||||
longDescription = "
|
longDescription = "
|
||||||
Monty implements supplementary useful functions for Python that are not part of the
|
Monty implements supplementary useful functions for Python that are not part of the
|
||||||
standard library. Examples include useful utilities like transparent support for zipped files, useful design
|
standard library. Examples include useful utilities like transparent support for zipped files, useful design
|
||||||
patterns such as singleton and cached_class, and many more.
|
patterns such as singleton and cached_class, and many more.
|
||||||
";
|
";
|
||||||
homepage = https://github.com/materialsvirtuallab/monty;
|
homepage = https://github.com/materialsvirtuallab/monty;
|
||||||
@ -35,4 +44,3 @@ buildPythonPackage rec {
|
|||||||
maintainers = with maintainers; [ psyanticy ];
|
maintainers = with maintainers; [ psyanticy ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user