2018-01-22 16:09:13 +00:00
|
|
|
{ stdenv
|
2020-08-16 23:38:52 +01:00
|
|
|
, lib
|
2017-12-30 11:28:47 +00:00
|
|
|
, fetchPypi
|
2016-12-11 19:05:40 +00:00
|
|
|
, buildPythonPackage
|
2020-08-16 23:38:52 +01:00
|
|
|
, pythonOlder
|
2016-12-11 19:05:40 +00:00
|
|
|
, multidict
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2020-08-16 23:38:52 +01:00
|
|
|
, typing-extensions
|
2017-12-30 11:28:47 +00:00
|
|
|
, idna
|
2016-12-11 19:05:40 +00:00
|
|
|
}:
|
|
|
|
|
2017-12-30 11:28:47 +00:00
|
|
|
buildPythonPackage rec {
|
2016-12-11 19:05:40 +00:00
|
|
|
pname = "yarl";
|
2020-08-16 18:31:20 +01:00
|
|
|
version = "1.5.1";
|
2018-01-22 16:09:13 +00:00
|
|
|
|
2017-12-30 11:28:47 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:20 +01:00
|
|
|
sha256 = "c22c75b5f394f3d47105045ea551e08a3e804dc7e01b37800ca35b58f856c3d6";
|
2016-12-11 19:05:40 +00:00
|
|
|
};
|
|
|
|
|
2017-12-30 11:28:47 +00:00
|
|
|
checkInputs = [ pytest pytestrunner ];
|
2020-08-16 23:38:52 +01:00
|
|
|
propagatedBuildInputs = [ multidict idna ]
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
2016-12-11 19:05:40 +00:00
|
|
|
|
2018-01-22 16:09:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-12-11 19:05:40 +00:00
|
|
|
description = "Yet another URL library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aio-libs/yarl/";
|
2018-01-22 16:09:13 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2016-12-11 19:05:40 +00:00
|
|
|
};
|
2018-01-22 16:09:13 +00:00
|
|
|
}
|