blob: 7ea5e8a8e4ab65a945c4b885ccf7064219668a9f (
plain)
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
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
}:
buildPythonPackage rec {
pname = "pyosf";
version = "1.0.5";
pyproject = true;
src = fetchFromGitHub {
owner = "psychopy";
repo = "pyosf";
tag = "v${version}";
hash = "sha256-Yhb6HSnLdFzWouse/RKZ8SIbMia/hhD8TAovdqmvd7o=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner', " ""
'';
preBuild = "export HOME=$TMP";
build-system = [ setuptools ];
dependencies = [ requests ];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "pyosf" ];
meta = {
description = "Pure Python library for simple sync with Open Science Framework";
homepage = "https://github.com/psychopy/pyosf";
changelog = "https://github.com/psychopy/pyosf/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|