Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

34 lines
772 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage {
pname = "pipetools";
version = "1.1.0";
format = "setuptools";
# Used github as the src since the pypi package does not include the tests
src = fetchFromGitHub {
owner = "0101";
repo = "pipetools";
rev = "6cba9fadab07a16fd85eed16d5cffc609f84c62b";
hash = "sha256-BoZFePQCQfz1dkct5p/WQLuXoNX3eLcnKf3Mf0fG6u8=";
};
nativeCheckInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ setuptools ];
pythonImportsCheck = [ "pipetools" ];
meta = {
description = "Library that enables function composition similar to using Unix pipes";
homepage = "https://0101.github.io/pipetools/";
license = lib.licenses.mit;
};
}