about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ondilo/default.nix
blob: 271243ab791e10230418f56be51ff5da31a68979 (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
35
36
37
38
{ lib
, buildPythonPackage
, fetchFromGitHub
, oauthlib
, pythonOlder
, requests
, requests_oauthlib
}:

buildPythonPackage rec {
  pname = "ondilo";
  version = "0.3.0";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "JeromeHXP";
    repo = pname;
    rev = version;
    sha256 = "sha256-MI6K+41I/IVi+GRBdmRIHbljULDFLAwpo3W8tdxCOBM=";
  };

  propagatedBuildInputs = [
    oauthlib
    requests
    requests_oauthlib
  ];

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "ondilo" ];

  meta = with lib; {
    description = "Python package to access Ondilo ICO APIs";
    homepage = "https://github.com/JeromeHXP/ondilo";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}