Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 761 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, mock 5, scripttest 6, virtualenv 7, pretend 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "pip"; 13 version = "19.0.3"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "6e6f197a1abfb45118dbb878b5c859a0edbdd33fd250100bc015b67fded4b9f2"; 18 }; 19 20 # pip detects that we already have bootstrapped_pip "installed", so we need 21 # to force it a little. 22 installFlags = [ "--ignore-installed" ]; 23 24 checkInputs = [ mock scripttest virtualenv pretend pytest ]; 25 # Pip wants pytest, but tests are not distributed 26 doCheck = false; 27 28 meta = { 29 description = "The PyPA recommended tool for installing Python packages"; 30 license = lib.licenses.mit; 31 homepage = https://pip.pypa.io/; 32 priority = 10; 33 }; 34}