nixpkgs/pkgs/development/python-modules/pylti/default.nix

51 lines
1 KiB
Nix
Raw Normal View History

2018-01-20 12:42:24 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, httplib2
, oauth
, oauth2
, semantic-version
, flask
, httpretty
, oauthlib
, pyflakes
2018-01-20 12:47:22 +01:00
, pytest
2018-01-20 12:42:24 +01:00
, pytestcache
, pytestcov
, covCore
, pytestflakes
, pytestpep8
, sphinx
, mock
, isPy27
}:
buildPythonPackage rec {
pname = "PyLTI";
2018-01-20 12:47:22 +01:00
version = "0.5.1";
2018-01-20 12:42:24 +01:00
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 ];
checkInputs = [
2018-01-20 12:47:22 +01:00
flask httpretty oauthlib pyflakes pytest pytestcache pytestcov covCore
2018-01-20 12:42:24 +01:00
pytestflakes pytestpep8 sphinx mock
];
src = fetchPypi {
inherit pname version;
2018-01-20 12:47:22 +01:00
sha256 = "32093d961bf95e508bf27667289155da1e082ed9989bb84a76c54c6974c941e1";
2018-01-20 12:42:24 +01:00
};
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 ];
};
}