nixpkgs/pkgs/development/python-modules/asyncclick/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

56 lines
1.0 KiB
Nix

{ lib
, anyio
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, pythonOlder
, trio
}:
buildPythonPackage rec {
pname = "asyncclick";
version = "8.1.3.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-trio";
repo = pname;
rev = version;
hash = "sha256-by1clF+WAfN/gjOg/F60O1tCZ3qAhWqiiJJY04iMzQ8=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
anyio
];
nativeCheckInputs = [
pytestCheckHook
trio
];
pytestFlagsArray = [
"-W" "ignore::trio.TrioDeprecationWarning"
];
disabledTests = [
# RuntimeWarning: coroutine 'Context.invoke' was never awaited
"test_context_invoke_type"
];
pythonImportsCheck = [ "asyncclick" ];
meta = with lib; {
description = "Python composable command line utility";
homepage = "https://github.com/python-trio/asyncclick";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}