Files
nixpkgs/pkgs/development/python-modules/outcome/default.nix
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

37 lines
747 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
attrs,
pytest,
}:
buildPythonPackage rec {
pname = "outcome";
version = "1.3.0.post0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [ attrs ];
# Has a test dependency on trio, which depends on outcome.
doCheck = false;
meta = {
description = "Capture the outcome of Python function calls";
homepage = "https://github.com/python-trio/outcome";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ catern ];
};
}