summary refs log tree commit diff
path: root/pkgs/development/python-modules/javaproperties/default.nix
blob: 348d83e110598d3eae90fb7a872857f7ff8a6e80 (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
{ lib, buildPythonPackage, fetchFromGitHub
, six
, pytest
, python-dateutil
}:

buildPythonPackage rec {
  version = "0.8.0";
  pname = "javaproperties";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jwodder";
    repo = pname;
    rev = "v${version}";
    sha256 = "0n6dz6rnpq8wdwqyxqwv0q7vrl26vfmvvysdjvy557fck1q2l0kf";
  };

  propagatedBuildInputs = [ six ];

  checkInputs = [ python-dateutil pytest ];
  checkPhase = ''
    rm tox.ini
    pytest -k 'not dumps and not time' --ignore=test/test_propclass.py
  '';

  meta = with lib; {
    description = "Microsoft Azure API Management Client Library for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    license = licenses.mit;
    maintainers = with maintainers; [ jonringer ];
  };
}