diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index df12d67e579..c9dc8319301 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2474,6 +2474,11 @@ github = "joncojonathan"; name = "Jonathan Haddock"; }; + jonringer = { + email = "jonringer117@gmail.com"; + github = "jonringer"; + name = "Jonathan Ringer"; + }; jorsn = { name = "Johannes Rosenberger"; email = "johannes@jorsn.eu"; diff --git a/pkgs/development/python-modules/applicationinsights/default.nix b/pkgs/development/python-modules/applicationinsights/default.nix new file mode 100644 index 00000000000..10f66b24d14 --- /dev/null +++ b/pkgs/development/python-modules/applicationinsights/default.nix @@ -0,0 +1,24 @@ +{ buildPythonPackage +, lib +, fetchPypi +, portalocker +}: + +buildPythonPackage rec { + version = "0.11.9"; + pname = "applicationinsights"; + + src = fetchPypi { + inherit pname version; + sha256 = "1hyjdv6xnswgqvip8y164piwfach9hjkbp7vc2qzhd7amjpim89h"; + }; + + propagatedBuildInputs = [ portalocker ]; + + meta = with lib; { + description = "This project extends the Application Insights API surface to support Python"; + homepage = https://github.com/Microsoft/ApplicationInsights-Python; + license = licenses.mit; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/development/python-modules/portalocker/default.nix b/pkgs/development/python-modules/portalocker/default.nix new file mode 100644 index 00000000000..c9f44dbcceb --- /dev/null +++ b/pkgs/development/python-modules/portalocker/default.nix @@ -0,0 +1,37 @@ +{ buildPythonPackage +, fetchPypi +, lib +, sphinx +, flake8 +, pytest +, pytestcov +, pytest-flakes +, pytestpep8 +}: + +buildPythonPackage rec { + version = "1.4.0"; + pname = "portalocker"; + + src = fetchPypi { + inherit pname version; + sha256 = "0gwjnalfwl1mb9a04m9h3hrds75xmc9na666aiz2cgz0m545dcrz"; + }; + + checkInputs = [ + sphinx + flake8 + pytest + pytestcov + pytest-flakes + pytestpep8 + ]; + + meta = with lib; { + description = "A library to provide an easy API to file locking"; + homepage = https://github.com/WoLpH/portalocker; + license = licenses.psfl; + maintainers = with maintainers; [ jonringer ]; + platforms = platforms.unix; # Windows has a dependency on pypiwin32 + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 24123edaf07..46de38b0bf3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1076,6 +1076,8 @@ in { application = callPackage ../development/python-modules/application { }; + applicationinsights = callPackage ../development/python-modules/applicationinsights { }; + appnope = callPackage ../development/python-modules/appnope { }; approvaltests = callPackage ../development/python-modules/approvaltests { }; @@ -1619,6 +1621,8 @@ in { parsy = callPackage ../development/python-modules/parsy { }; + portalocker = callPackage ../development/python-modules/portalocker { }; + portpicker = callPackage ../development/python-modules/portpicker { }; pkginfo = callPackage ../development/python-modules/pkginfo { };