git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.splinter: fix build

Add six to propagatedBuildInputs. Also enable tests and add dotlambda to maintainers.

commitecc1a0ff708d9916fa279b4f1fb931825ed7cd99 authorRobert Schütz <dev@schuetz-co.de> dateSat 10 Apr 2021, 13:57 (6 years ago) parentecd2d63
1 file changed+31−11
pkgs/development/python-modules/splinter/default.nix+31−11
pkgs/development/python-modules/splinter/default.nix+31−11
@@ -1,30 +1,50 @@
11{ lib
22, buildPythonPackage
3−, fetchPypi
3+, fetchFromGitHub
44, selenium
5+, six
56, flask
6−, coverage
7+, pytestCheckHook
78}:
89
910buildPythonPackage rec {
1011 pname = "splinter";
1112 version = "0.14.0";
1213
13− src = fetchPypi {
14− inherit pname version;
15− sha256 = "459e39e7a9f7572db6f1cdb5fdc5ccfc6404f021dccb969ee6287be2386a40db";
14+ src = fetchFromGitHub {
15+ owner = "cobrateam";
16+ repo = "splinter";
17+ rev = version;
18+ sha256 = "0480bqprv8581cvnc80ls91rz9780wvdnfw99zsw44hvy2yg15a6";
1619 };
1720
18− propagatedBuildInputs = [ selenium ];
21+ propagatedBuildInputs = [
22+ selenium
23+ six
24+ ];
1925
20− checkInputs = [ flask coverage ];
26+ checkInputs = [
27+ flask
28+ pytestCheckHook
29+ ];
2130
22− # No tests included
23− doCheck = false;
31+ disabledTestPaths = [
32+ "samples"
33+ "tests/test_djangoclient.py"
34+ "tests/test_flaskclient.py"
35+ "tests/test_webdriver.py"
36+ "tests/test_webdriver_chrome.py"
37+ "tests/test_webdriver_firefox.py"
38+ "tests/test_webdriver_remote.py"
39+ "tests/test_zopetestbrowser.py"
40+ ];
2441
25− meta = {
42+ pythonImportsCheck = [ "splinter" ];
43+
44+ meta = with lib; {
2645 description = "Browser abstraction for web acceptance testing";
2746 homepage = "https://github.com/cobrateam/splinter";
28− license = lib.licenses.bsd3;
47+ license = licenses.bsd3;
48+ maintainers = with maintainers; [ dotlambda ];
2949 };
3050}