Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.3 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, flit-core 15}: 16 17# Flit is actually an application to build universal wheels. 18# It requires Python 3 and should eventually be moved outside of 19# python-packages.nix. When it will be used to build wheels, 20# care should be taken that there is no mingling of PYTHONPATH. 21 22buildPythonPackage rec { 23 pname = "flit"; 24 version = "2.3.0"; 25 disabled = !isPy3k; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "017012b809ec489918afd68af7a70bd7c8c770c87b60159d875c126866e97a4b"; 30 }; 31 32 propagatedBuildInputs = [ 33 docutils 34 requests 35 requests_download 36 pytoml 37 flit-core 38 ] ++ lib.optionals (pythonOlder "3.6") [ 39 zipfile36 40 ]; 41 42 checkInputs = [ pytest testpath responses ]; 43 44 # Disable test that needs some ini file. 45 # Disable test that wants hg 46 checkPhase = '' 47 HOME=$(mktemp -d) pytest -k "not test_invalid_classifier and not test_build_sdist" 48 ''; 49 50 meta = with lib; { 51 description = "A simple packaging tool for simple packages"; 52 homepage = "https://github.com/takluyver/flit"; 53 license = licenses.bsd3; 54 maintainers = [ maintainers.fridh ]; 55 }; 56}