summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyosf/default.nix
blob: 07c657bf226e261b50b0e7757e051c0628e43537 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytest-runner
, requests
}:

buildPythonPackage rec {
  pname = "pyosf";
  version = "1.0.5";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "psychopy";
    repo = pname;
    rev = "v${version}";
    sha256 = "1fkpmylpcbqa9ky111mz4qr1n8pik49gs7pblbb5qx6b54fzl5k2";
  };

  preBuild = "export HOME=$TMP";
  buildInputs = [ pytest-runner ];  # required via `setup_requires`
  propagatedBuildInputs = [ requests ];

  doCheck = false;  # requires network access
  pythonImportsCheck = [ "pyosf" ];

  meta = with lib; {
    homepage = "https://github.com/psychopy/pyosf";
    description = "Pure Python library for simple sync with Open Science Framework";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}