python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / tunigo / default.nix
blob034aed0251b31cf00af7f528eb0b83974751a409
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   requests,
6   mock,
7   responses,
8   pytest,
9 }:
11 buildPythonPackage rec {
12   pname = "tunigo";
13   version = "1.0.0";
14   format = "setuptools";
16   propagatedBuildInputs = [ requests ];
18   src = fetchFromGitHub {
19     owner = "trygveaa";
20     repo = "python-tunigo";
21     rev = "v${version}";
22     sha256 = "07q9girrjjffzkn8xj4l3ynf9m4psi809zf6f81f54jdb330p2fs";
23   };
25   nativeCheckInputs = [
26     mock
27     responses
28     pytest
29   ];
31   checkPhase = ''
32     py.test
33   '';
35   meta = with lib; {
36     description = "Python API for the browse feature of Spotify";
37     homepage = "https://github.com/trygveaa/python-tunigo";
38     license = licenses.asl20;
39   };