2019-10-23 09:50:42 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, pytest
|
2021-07-03 13:37:24 +02:00
|
|
|
, python-dateutil
|
2019-10-23 09:50:42 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-03-24 18:41:50 +01:00
|
|
|
version = "0.8.0";
|
2019-10-23 09:50:42 +02:00
|
|
|
pname = "javaproperties";
|
2021-03-24 18:52:55 +01:00
|
|
|
format = "pyproject";
|
2019-10-23 09:50:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-24 18:41:50 +01:00
|
|
|
sha256 = "0n6dz6rnpq8wdwqyxqwv0q7vrl26vfmvvysdjvy557fck1q2l0kf";
|
2019-10-23 09:50:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2021-07-03 13:37:24 +02:00
|
|
|
checkInputs = [ python-dateutil pytest ];
|
2019-10-23 09:50:42 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|