at master 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 git, 6 mock, 7 pep440, 8 pip, 9 pytestCheckHook, 10 pythonOlder, 11 setuptools, 12 six, 13}: 14 15buildPythonPackage rec { 16 pname = "setupmeta"; 17 version = "3.8.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "codrsquad"; 24 repo = "setupmeta"; 25 tag = "v${version}"; 26 hash = "sha256-2SKiIkwfmXVOQBKBNUmw4SjiVpyLjIMpSHNA9IQxqwY="; 27 }; 28 29 preBuild = '' 30 export PYGRADLE_PROJECT_VERSION=${version}; 31 ''; 32 33 build-system = [ setuptools ]; 34 35 nativeCheckInputs = [ 36 git 37 mock 38 pep440 39 pip 40 pytestCheckHook 41 six 42 ]; 43 44 preCheck = '' 45 unset PYGRADLE_PROJECT_VERSION 46 ''; 47 48 disabledTests = [ 49 # Tests want to scan site-packages 50 "test_check_dependencies" 51 "test_clean" 52 "test_scenario" 53 "test_git_versioning" 54 # setuptools.installer and fetch_build_eggs are deprecated. 55 # Requirements should be satisfied by a PEP 517 installer. 56 "test_brand_new_project" 57 ]; 58 59 pythonImportsCheck = [ "setupmeta" ]; 60 61 meta = with lib; { 62 description = "Python module to simplify setup.py files"; 63 homepage = "https://github.com/codrsquad/setupmeta"; 64 license = licenses.mit; 65 maintainers = with maintainers; [ fab ]; 66 }; 67}