From 8983acace05a7085577a41afb290780cda07fa54 Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Wed, 13 Oct 2021 22:54:35 +0800 Subject: [PATCH] python3Packages.versionfinder: init at 1.1.1 --- .../python-modules/versionfinder/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/versionfinder/default.nix diff --git a/pkgs/development/python-modules/versionfinder/default.nix b/pkgs/development/python-modules/versionfinder/default.nix new file mode 100644 index 000000000000..a6c36e07c51e --- /dev/null +++ b/pkgs/development/python-modules/versionfinder/default.nix @@ -0,0 +1,32 @@ +{ lib, buildPythonPackage, fetchFromGitHub, GitPython, pytest, backoff, requests }: + +buildPythonPackage rec { + pname = "versionfinder"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "jantman"; + repo = pname; + rev = version; + sha256 = "16mvjwyhmw39l8by69dgr9b9jnl7yav36523lkh7w7pwd529pbb9"; + }; + + propagatedBuildInputs = [ + GitPython + backoff + ]; + + checkInputs = [ + pytest + requests + ]; + + pythonImportsCheck = [ "versionfinder" ]; + + meta = with lib; { + description = "Find the version of another package, whether installed via pip, setuptools or git"; + homepage = "https://github.com/jantman/versionfinder"; + license = licenses.agpl3Plus; + maintainers = with maintainers; [ zakame ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 10f2bbca0928..ec8db61bb037 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9520,6 +9520,8 @@ in { versioneer = callPackage ../development/python-modules/versioneer { }; + versionfinder = callPackage ../development/python-modules/versionfinder { }; + versiontag = callPackage ../development/python-modules/versiontag { }; versiontools = callPackage ../development/python-modules/versiontools { };