1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, pytest-runner
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "pyosf";
11 version = "1.0.5";
12 disabled = isPy27;
13
14 src = fetchFromGitHub {
15 owner = "psychopy";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "1fkpmylpcbqa9ky111mz4qr1n8pik49gs7pblbb5qx6b54fzl5k2";
19 };
20
21 preBuild = "export HOME=$TMP";
22 buildInputs = [ pytest-runner ]; # required via `setup_requires`
23 propagatedBuildInputs = [ requests ];
24
25 doCheck = false; # requires network access
26 pythonImportsCheck = [ "pyosf" ];
27
28 meta = with lib; {
29 homepage = "https://github.com/psychopy/pyosf";
30 description = "Pure Python library for simple sync with Open Science Framework";
31 license = licenses.mit;
32 maintainers = with maintainers; [ bcdarwin ];
33 };
34}