From 942e1a363f968678197c6108d1069b8b483ca619 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 7 Mar 2021 21:20:34 +0100 Subject: [PATCH] python3Packages.pytest-cid: init at 1.1.1 --- .../python-modules/pytest-cid/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-cid/default.nix diff --git a/pkgs/development/python-modules/pytest-cid/default.nix b/pkgs/development/python-modules/pytest-cid/default.nix new file mode 100644 index 000000000000..c1c918c4d60c --- /dev/null +++ b/pkgs/development/python-modules/pytest-cid/default.nix @@ -0,0 +1,40 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, pythonOlder +, py-cid +, pytestCheckHook +, pytest-cov +}: + +buildPythonPackage rec { + pname = "pytest-cid"; + version = "1.1.1"; + format = "flit"; + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "ntninja"; + repo = pname; + rev = "1ff9ec43ac9eaf76352ea7e7a060cd081cb8b68a"; # Version has no git tag + sha256 = "sha256-H2RtMGYWukowTTfqZSx+hikxzkqw1v5bA4AfZfiVl8U="; + }; + + propagatedBuildInputs = [ + py-cid + ]; + + checkInputs = [ + pytestCheckHook + pytest-cov + ]; + + pythonImportsCheck = [ "pytest_cid" ]; + + meta = with lib; { + homepage = "https://github.com/ntninja/pytest-cid"; + description = "A simple wrapper around py-cid for easily writing tests involving CIDs in datastructures"; + license = licenses.mpl20; + maintainers = with maintainers; [ Luflosi ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f2b8afa2c56b..6df69c87410e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6249,6 +6249,8 @@ in { pytest-check = callPackage ../development/python-modules/pytest-check { }; + pytest-cid = callPackage ../development/python-modules/pytest-cid { }; + pytest-click = callPackage ../development/python-modules/pytest-click { }; pytest-cov = self.pytestcov; # self 2021-01-04