2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, repoze_lru
|
|
|
|
, six
|
2020-12-07 07:45:13 +00:00
|
|
|
, soupsieve
|
2020-04-24 23:36:52 +00:00
|
|
|
, webob
|
|
|
|
, coverage
|
|
|
|
, webtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Routes";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "b6346459a15f0cbab01a45a90c3d25caf980d4733d628b4cc1952b865125d053";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [ repoze_lru six soupsieve webob ];
|
|
|
|
# incompatible with latest soupsieve
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ coverage soupsieve webtest ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "routes" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions";
|
|
|
|
homepage = "http://routes.groovie.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|