2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:48:13 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, repoze_lru
|
|
|
|
, six
|
2020-11-29 17:38:09 +00:00
|
|
|
, soupsieve
|
2018-10-26 17:48:13 +01:00
|
|
|
, webob
|
|
|
|
, coverage
|
|
|
|
, webtest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Routes";
|
2020-11-29 14:04:41 +00:00
|
|
|
version = "2.5.1";
|
2018-10-26 17:48:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:41 +00:00
|
|
|
sha256 = "b6346459a15f0cbab01a45a90c3d25caf980d4733d628b4cc1952b865125d053";
|
2018-10-26 17:48:13 +01:00
|
|
|
};
|
|
|
|
|
2020-11-29 17:38:09 +00:00
|
|
|
propagatedBuildInputs = [ repoze_lru six soupsieve webob ];
|
|
|
|
# incompatible with latest soupsieve
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ coverage soupsieve webtest ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "routes" ];
|
2018-10-26 17:48:13 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 17:48:13 +01:00
|
|
|
description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://routes.groovie.org/";
|
2018-10-26 17:48:13 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|