Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, docutils 6, requests 7, requests_download 8, zipfile36 9, pythonOlder 10, pytest 11, testpath 12, responses 13, pytoml 14}: 15 16# Flit is actually an application to build universal wheels. 17# It requires Python 3 and should eventually be moved outside of 18# python-packages.nix. When it will be used to build wheels, 19# care should be taken that there is no mingling of PYTHONPATH. 20 21buildPythonPackage rec { 22 pname = "flit"; 23 version = "1.3"; 24 25 src = fetchPypi { 26 inherit pname version; 27 sha256 = "6f6f0fb83c51ffa3a150fa41b5ac118df9ea4a87c2c06dff4ebf9adbe7b52b36"; 28 }; 29 30 disabled = !isPy3k; 31 propagatedBuildInputs = [ docutils requests requests_download pytoml ] 32 ++ lib.optional (pythonOlder "3.6") zipfile36; 33 34 checkInputs = [ pytest testpath responses ]; 35 36 # Disable test that needs some ini file. 37 # Disable test that wants hg 38 checkPhase = '' 39 HOME=$(mktemp -d) pytest -k "not test_invalid_classifier and not test_build_sdist" 40 ''; 41 42 meta = { 43 description = "A simple packaging tool for simple packages"; 44 homepage = https://github.com/takluyver/flit; 45 license = lib.licenses.bsd3; 46 maintainers = [ lib.maintainers.fridh ]; 47 }; 48}