1{ lib
2, buildPythonPackage
3, fetchPypi
4, httplib2
5, oauth
6, oauth2
7, semantic-version
8, flask
9, httpretty
10, oauthlib
11, pyflakes
12, pytest
13, pytestcache
14, pytestcov
15, covCore
16, pytest-flakes
17, pytestpep8
18, sphinx
19, mock
20, chalice
21, isPy27
22}:
23
24buildPythonPackage rec {
25 pname = "PyLTI";
26 version = "0.7.0";
27
28 disabled = !isPy27;
29
30 # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
31 postPatch = ''
32 substituteInPlace setup.py --replace "mock==1.0.1" "mock"
33 '';
34
35 propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ];
36 checkInputs = [
37 flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
38 pytest-flakes pytestpep8 sphinx mock chalice
39 ];
40
41 src = fetchPypi {
42 inherit pname version;
43 sha256 = "80938a235b1ab390f6889a95237d087ea7adde5cc50fcae9c80c49898e8ee78e";
44 };
45
46 meta = {
47 description = "Implementation of IMS LTI interface that works with edX";
48 homepage = "https://github.com/mitodl/pylti";
49 license = lib.licenses.bsdOriginal;
50 maintainers = with lib.maintainers; [ layus ];
51 };
52}