Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchurl 5, isPy3k 6, docutils 7, requests 8, requests_download 9, zipfile36 10, pythonOlder 11, pytest 12, testpath 13, responses 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 = "0.11.4"; 24 name = "${pname}-${version}"; 25 26# format = "wheel"; 27 28 src = fetchPypi { 29 inherit pname version; 30# url = https://files.pythonhosted.org/packages/24/98/50a090112a04d9e29155c31a222637668b0a4dd778fefcd3132adc50e877/flit-0.10-py3-none-any.whl; 31 sha256 = "8ba7603cc3bf4149d81811d40fe331abc45ff37a207c63f5f712a0fdb69297bb"; 32 }; 33 34 disabled = !isPy3k; 35 propagatedBuildInputs = [ docutils requests requests_download ] ++ lib.optional (pythonOlder "3.6") zipfile36; 36 37 checkInputs = [ pytest testpath responses ]; 38 39 # Disable test that needs some ini file. 40 checkPhase = '' 41 py.test -k "not test_invalid_classifier" 42 ''; 43 44 meta = { 45 description = "A simple packaging tool for simple packages"; 46 homepage = https://github.com/takluyver/flit; 47 license = lib.licenses.bsd3; 48 maintainer = lib.maintainers.fridh; 49 }; 50}