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