lol

yrd: use python3

+19 -9
+19 -9
pkgs/tools/networking/yrd/default.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages }: 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + }: 2 5 3 - let 6 + python3.pkgs.buildPythonApplication rec { 4 7 pname = "yrd"; 5 8 version = "0.5.3"; 6 - sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps"; 7 - 8 - in pythonPackages.buildPythonApplication { 9 - name = "${pname}-${version}"; 10 9 11 10 src = fetchFromGitHub { 12 11 owner = "kpcyrd"; 13 12 repo = pname; 14 13 rev = "v${version}"; 15 - inherit sha256; 14 + sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps"; 16 15 }; 17 16 18 - propagatedBuildInputs = with pythonPackages; [ argh ]; 17 + propagatedBuildInputs = with python3.pkgs; [ 18 + argh 19 + requests 20 + ]; 21 + 22 + checkInputs = with python3.pkgs; [ 23 + nose 24 + ]; 25 + 26 + checkPhase = '' 27 + nosetests -v yrd 28 + ''; 19 29 20 30 meta = with lib; { 21 31 description = "Cjdns swiss army knife"; 22 32 maintainers = with maintainers; [ akru ]; 23 33 platforms = platforms.linux; 24 - license = licenses.gpl3; 34 + license = licenses.gpl3Only; 25 35 homepage = "https://github.com/kpcyrd/yrd"; 26 36 }; 27 37 }