git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.robotframework: run the unit tests

The zip-file from PyPI lacks a few directories, notably the one containing the unit tests. So switch from fetchPypi to fetchFromGitHub.

commit738e8eb967783b0bda4d3548cd775556d7b5e9c6 authorBjørn Forsman <bjorn.forsman@gmail.com> dateSun 25 Apr 2021, 19:44 (6 years ago) parent9db80bb
1 file changed+12−5
pkgs/development/python-modules/robotframework/default.nix+12−5
pkgs/development/python-modules/robotframework/default.nix+12−5
@@ -1,15 +1,22 @@
1−{ lib, fetchPypi, buildPythonPackage }:
1+{ lib, fetchFromGitHub, buildPythonPackage, jsonschema }:
22
33buildPythonPackage rec {
44 pname = "robotframework";
55 version = "4.0.1";
66
7− src = fetchPypi {
8− inherit pname version;
9− sha256 = "9fa609ceb78f67b1476edce8a7011b16bf3ab41c0fb8c211de6c99955eaf9fde";
10− extension = "zip";
7+ src = fetchFromGitHub {
8+ owner = pname;
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1nkph0slrhss6y52y8jgbdc6m8hbqjilrwp3r00wwyqdifrfa1i6";
1112 };
1213
14+ checkInputs = [ jsonschema ];
15+
16+ checkPhase = ''
17+ python3 utest/run.py
18+ '';
19+
1320 meta = with lib; {
1421 description = "Generic test automation framework";
1522 homepage = "https://robotframework.org/";