git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.monty: init at 1.0.2
commit0fe77afcaf94d65c02edce3b6282ca401ffefcdf authorAssassinkin <iuns@outlook.fr> dateFri 22 Jun 2018, 12:54 (8 years ago) parentbf1c28e
2 files changed+40−1
pkgs/development/python-modules/monty/default.nix+37 pkgs/top-level/python-packages.nix+3−1
pkgs/development/python-modules/monty/default.nixnew file+37
@@ -0,0 +1,37 @@
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+
pkgs/top-level/python-packages.nix+3−1
@@ -291,7 +291,9 @@ in {
291291
292292 logster = callPackage ../development/python-modules/logster { };
293293
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 { };
295297
296298 mpi4py = callPackage ../development/python-modules/mpi4py {
297299 mpi = pkgs.openmpi;