tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.PyLTI: move expression
Frederik Rietdijk
8 years ago
29e96089
c0c616b8
+52
-29
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
pylti
default.nix
top-level
python-packages.nix
+51
pkgs/development/python-modules/pylti/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, httplib2
5
5
+
, oauth
6
6
+
, oauth2
7
7
+
, semantic-version
8
8
+
, flask
9
9
+
, httpretty
10
10
+
, oauthlib
11
11
+
, pyflakes
12
12
+
, pytest_27
13
13
+
, pytestcache
14
14
+
, pytestcov
15
15
+
, covCore
16
16
+
, pytestflakes
17
17
+
, pytestpep8
18
18
+
, sphinx
19
19
+
, mock
20
20
+
, isPy27
21
21
+
}:
22
22
+
23
23
+
buildPythonPackage rec {
24
24
+
pname = "PyLTI";
25
25
+
version = "0.4.1";
26
26
+
27
27
+
disabled = !isPy27;
28
28
+
29
29
+
# There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
30
30
+
postPatch = ''
31
31
+
substituteInPlace setup.py --replace "mock==1.0.1" "mock"
32
32
+
'';
33
33
+
34
34
+
propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ];
35
35
+
checkInputs = [
36
36
+
flask httpretty oauthlib pyflakes pytest_27 pytestcache pytestcov covCore
37
37
+
pytestflakes pytestpep8 sphinx mock
38
38
+
];
39
39
+
40
40
+
src = fetchPypi {
41
41
+
inherit pname version;
42
42
+
sha256 = "076llj10j85zw3zq2gygx2pcfqi9rgcld5m4vq1iai1fk15x60fz";
43
43
+
};
44
44
+
45
45
+
meta = {
46
46
+
description = "Implementation of IMS LTI interface that works with edX";
47
47
+
homepage = "https://github.com/mitodl/pylti";
48
48
+
license = lib.licenses.bsdOriginal;
49
49
+
maintainers = with lib.maintainers; [ layus ];
50
50
+
};
51
51
+
}
+1
-29
pkgs/top-level/python-packages.nix
···
5621
5621
};
5622
5622
};
5623
5623
5624
5624
-
PyLTI = buildPythonPackage rec {
5625
5625
-
version = "0.4.1";
5626
5626
-
name = "PyLTI-${version}";
5627
5627
-
5628
5628
-
disabled = !isPy27;
5629
5629
-
5630
5630
-
# There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
5631
5631
-
postPatch = ''
5632
5632
-
substituteInPlace setup.py --replace "mock==1.0.1" "mock"
5633
5633
-
'';
5634
5634
-
5635
5635
-
propagatedBuildInputs = with self; [ httplib2 oauth oauth2 semantic-version ];
5636
5636
-
buildInputs = with self; [
5637
5637
-
flask httpretty oauthlib pyflakes pytest_27 pytestcache pytestcov covCore
5638
5638
-
pytestflakes pytestpep8 sphinx mock
5639
5639
-
];
5640
5640
-
5641
5641
-
src = pkgs.fetchurl {
5642
5642
-
url = "mirror://pypi/P/PyLTI/${name}.tar.gz";
5643
5643
-
sha256 = "076llj10j85zw3zq2gygx2pcfqi9rgcld5m4vq1iai1fk15x60fz";
5644
5644
-
};
5645
5645
-
5646
5646
-
meta = {
5647
5647
-
description = "Implementation of IMS LTI interface that works with edX";
5648
5648
-
homepage = "https://github.com/mitodl/pylti";
5649
5649
-
license = licenses.bsdOriginal;
5650
5650
-
maintainers = with maintainers; [ layus ];
5651
5651
-
};
5652
5652
-
};
5624
5624
+
PyLTI = callPackage ../development/python-modules/pylti { };
5653
5625
5654
5626
lmdb = buildPythonPackage rec {
5655
5627
pname = "lmdb";