Files
nixpkgs/pkgs/development/python-modules/itemadapter/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
842 B
Nix

{
lib,
attrs,
buildPythonPackage,
fetchPypi,
hatchling,
pydantic,
pythonOlder,
scrapy,
}:
buildPythonPackage rec {
pname = "itemadapter";
version = "0.12.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-pQiCQ+iO/jCY8XIIVecHF25zVa2H0dIOKwMpf10V0b4=";
};
build-system = [ hatchling ];
optional-dependencies = {
attrs = [ attrs ];
pydantic = [ pydantic ];
scrapy = [ scrapy ];
};
# Infinite recursion with Scrapy
doCheck = false;
pythonImportsCheck = [ "itemadapter" ];
meta = {
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 = lib.licenses.bsd3;
maintainers = [ ];
};
}