aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
new file mode 100644
index 000000000000..08c7e50e95e9
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/itemloaders/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, isPy27
+, w3lib
+, parsel
+, jmespath
+, itemadapter
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "itemloaders";
+ version = "1.0.3";
+
+ disabled = isPy27;
+
+ # Tests not included in PyPI tarball
+ src = fetchFromGitHub {
+ owner = "scrapy";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1s8c2il7jyfixpb7h5zq0lf4s07pqwia4ycpf3slb8whcp0h8bfm";
+ };
+
+ propagatedBuildInputs = [ w3lib parsel jmespath itemadapter ];
+
+ checkInputs = [ pytestCheckHook ];
+
+ meta = with lib; {
+ description = "Base library for scrapy's ItemLoader";
+ homepage = "https://github.com/scrapy/itemloaders";
+ license = licenses.bsd3;
+ maintainers = [ maintainers.marsam ];
+ };
+}