2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions";
|
|
|
|
homepage = "http://routes.groovie.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|