depot/third_party/nixpkgs/pkgs/development/python-modules/setupmeta/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

71 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
git,
mock,
pep440,
pip,
pytestCheckHook,
pythonOlder,
setuptools-scm,
six,
wheel,
}:
buildPythonPackage rec {
pname = "setupmeta";
version = "3.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "codrsquad";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-OI7PU5LQ6w0iAbK7nsP+6RizsEWjKP9nec2J6n0xUhI=";
};
preBuild = ''
export PYGRADLE_PROJECT_VERSION=${version};
'';
nativeBuildInputs = [
setuptools-scm
wheel
];
nativeCheckInputs = [
git
mock
pep440
pip
pytestCheckHook
six
];
preCheck = ''
unset PYGRADLE_PROJECT_VERSION
'';
disabledTests = [
# Tests want to scan site-packages
"test_check_dependencies"
"test_clean"
"test_scenario"
"test_git_versioning"
# setuptools.installer and fetch_build_eggs are deprecated.
# Requirements should be satisfied by a PEP 517 installer.
"test_brand_new_project"
];
pythonImportsCheck = [ "setupmeta" ];
meta = with lib; {
description = "Python module to simplify setup.py files";
homepage = "https://github.com/codrsquad/setupmeta";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}