My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/setupmeta/default.nix

65 lines
1.1 KiB

{ lib
, buildPythonPackage
, fetchFromGitHub
, git
, mock
, pep440
, pytestCheckHook
, pythonOlder
, setuptools-scm
, six
}:
buildPythonPackage rec {
pname = "setupmeta";
version = "3.3.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "codrsquad";
repo = pname;
rev = "v${version}";
sha256 = "sha256-3QUI3AjouuGa9sWXH97GSvpimVsws3q5Xgq6lls/wBU=";
};
preBuild = ''
export PYGRADLE_PROJECT_VERSION=${version};
'';
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
git
mock
pep440
pytestCheckHook
six
];
preCheck = ''
unset PYGRADLE_PROJECT_VERSION
'';
disabledTests = [
# Tests want to scan site-packages
"test_check_dependencies"
"test_clean"
"test_scenario"
"test_git_versioning"
];
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 ];
};
}