2016-12-11 20:05:40 +01:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPythonPackage
|
|
|
|
, multidict
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "yarl";
|
2017-08-24 19:34:20 +02:00
|
|
|
version = "0.12.0";
|
2016-12-11 20:05:40 +01:00
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
2017-08-24 19:34:20 +02:00
|
|
|
sha256 = "fc0f71ffdce882b4d4b287b0b3a68d9f2557ab14cc2c10ce4df714c42512cbde";
|
2016-12-11 20:05:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ multidict ];
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Yet another URL library";
|
|
|
|
homepage = https://github.com/aio-libs/yarl/;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|