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

34 lines
686 B
Nix
Raw Normal View History

{ 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-11-29 14:04:46 +00:00
version = "1.6.3";
2018-01-22 16:09:13 +00:00
2017-12-30 11:28:47 +00:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:46 +00:00
sha256 = "8a9066529240171b68893d60dca86a763eae2139dd42f42106b03cf4b426bf10";
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
meta = with lib; {
2016-12-11 19:05:40 +00:00
description = "Yet another URL library";
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
}