From 7a538938a040a0fb05c673b058359e756ba680fd Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 11 Dec 2016 20:05:40 +0100 Subject: [PATCH] pythonPackages.yarl: init at 0.8.1 --- .../python-modules/yarl/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/yarl/default.nix diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix new file mode 100644 index 000000000000..246b761fa538 --- /dev/null +++ b/pkgs/development/python-modules/yarl/default.nix @@ -0,0 +1,28 @@ +{ lib +, fetchurl +, buildPythonPackage +, multidict +, pytestrunner +, pytest +}: + +let + pname = "yarl"; + version = "0.8.1"; +in buildPythonPackage rec { + name = "${pname}-${version}"; + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "9f0397ae540124bf16a8a5b89bc3ea1c07f8ae70c3e44231a40a9edd254d5712"; + }; + + buildInputs = [ pytest pytestrunner ]; + propagatedBuildInputs = [ multidict ]; + + + meta = { + description = "Yet another URL library"; + homepage = https://github.com/aio-libs/yarl/; + license = lib.licenses.asl20; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8715824bde48..928ee522e11c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -31438,6 +31438,8 @@ in { }; }; + yarl = callPackage ../development/python-modules/yarl { }; + stripe = buildPythonPackage rec { name = "${pname}-${version}"; pname = "stripe";