at 18.03-beta 1.1 kB view raw
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, pytestflakes 17, pytestpep8 18, sphinx 19, mock 20, isPy27 21}: 22 23buildPythonPackage rec { 24 pname = "PyLTI"; 25 version = "0.5.1"; 26 27 disabled = !isPy27; 28 29 # There is no need to fix mock. https://github.com/mitodl/pylti/pull/48 30 postPatch = '' 31 substituteInPlace setup.py --replace "mock==1.0.1" "mock" 32 ''; 33 34 propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ]; 35 checkInputs = [ 36 flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore 37 pytestflakes pytestpep8 sphinx mock 38 ]; 39 40 src = fetchPypi { 41 inherit pname version; 42 sha256 = "32093d961bf95e508bf27667289155da1e082ed9989bb84a76c54c6974c941e1"; 43 }; 44 45 meta = { 46 description = "Implementation of IMS LTI interface that works with edX"; 47 homepage = "https://github.com/mitodl/pylti"; 48 license = lib.licenses.bsdOriginal; 49 maintainers = with lib.maintainers; [ layus ]; 50 }; 51}