biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pyosf / default.nix
blobbe9f9d10153b2cceb34c89dfc9bb523247b03adc
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   setuptools,
7   requests,
8 }:
10 buildPythonPackage rec {
11   pname = "pyosf";
12   version = "1.0.5";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "psychopy";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-Yhb6HSnLdFzWouse/RKZ8SIbMia/hhD8TAovdqmvd7o=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace-fail "'pytest-runner', " ""
27   '';
29   preBuild = "export HOME=$TMP";
31   build-system = [ setuptools ];
33   dependencies = [ requests ];
35   # Tests require network access
36   doCheck = false;
38   pythonImportsCheck = [ "pyosf" ];
40   meta = with lib; {
41     description = "Pure Python library for simple sync with Open Science Framework";
42     homepage = "https://github.com/psychopy/pyosf";
43     changelog = "https://github.com/psychopy/pyosf/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ bcdarwin ];
46   };