depot/third_party/nixpkgs/pkgs/development/python-modules/tendo/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

49 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "tendo";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pycontribs";
repo = "tendo";
rev = "refs/tags/v${version}";
hash = "sha256-ZOozMGxAKcEtmUEzHCFSojKc+9Ha+T2MOTmMvdMqNuQ=";
};
postPatch = ''
# marken broken and not required
sed -i '/setuptools_scm_git_archive/d' pyproject.toml
# unused
substituteInPlace setup.cfg \
--replace-fail "six" ""
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"tendo"
];
meta = with lib; {
description = "Adds basic functionality that is not provided by Python";
homepage = "https://github.com/pycontribs/tendo";
changelog = "https://github.com/pycontribs/tendo/releases/tag/v${version}";
license = licenses.psfl;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}