2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, httplib2
|
|
|
|
, oauth
|
|
|
|
, oauth2
|
|
|
|
, semantic-version
|
|
|
|
, flask
|
|
|
|
, httpretty
|
|
|
|
, oauthlib
|
|
|
|
, pyflakes
|
|
|
|
, pytest
|
|
|
|
, pytestcache
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, covCore
|
|
|
|
, pytest-flakes
|
|
|
|
, sphinx
|
|
|
|
, mock
|
|
|
|
, chalice
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "pylti";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.7.0";
|
|
|
|
|
|
|
|
disabled = !isPy27;
|
|
|
|
|
|
|
|
# There is no need to fix mock. https://github.com/mitodl/pylti/pull/48
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "mock==1.0.1" "mock"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ httplib2 oauth oauth2 semantic-version ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-24 12:14:16 +00:00
|
|
|
flask httpretty oauthlib pyflakes pytest pytestcache pytest-cov covCore
|
2020-12-25 13:55:36 +00:00
|
|
|
pytest-flakes sphinx mock chalice
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "PyLTI";
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "80938a235b1ab390f6889a95237d087ea7adde5cc50fcae9c80c49898e8ee78e";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implementation of IMS LTI interface that works with edX";
|
|
|
|
homepage = "https://github.com/mitodl/pylti";
|
|
|
|
license = lib.licenses.bsdOriginal;
|
|
|
|
maintainers = with lib.maintainers; [ layus ];
|
|
|
|
};
|
|
|
|
}
|