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