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