python3Packages.itemadapter: on older èython releases

This commit is contained in:
Fabian Affolter 2022-03-19 10:25:22 +01:00 committed by GitHub
parent 2bcab84d10
commit 011bed457b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,33 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "itemadapter";
version = "0.5.0";
format = "setuptools";
disabled = isPy27;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BbanndMaepk9+y6Dhqkcl+O4xs8otyVT6AjmJeC4fCA=";
hash = "sha256-BbanndMaepk9+y6Dhqkcl+O4xs8otyVT6AjmJeC4fCA=";
};
doCheck = false; # infinite recursion with Scrapy
# Infinite recursion with Scrapy
doCheck = false;
pythonImportsCheck = [ "itemadapter" ];
pythonImportsCheck = [
"itemadapter"
];
meta = with lib; {
description = "Common interface for data container classes";
homepage = "https://github.com/scrapy/itemadapter";
changelog = "https://github.com/scrapy/itemadapter/raw/v${version}/Changelog.md";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
maintainers = with maintainers; [ marsam ];
};
}