Skip to content

Commit

Permalink
Merge pull request #155418 from gador/add-sentinels
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Jan 18, 2022
2 parents ba7c4fa + 0a85191 commit 0656394
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/sentinels/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "sentinels";
version = "1.0.0";

disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
sha256 = "1cglkxph47pki4db4kjx5g4ikxp2milqdlcjgqwmx4p1gx6p1q3v";
};

propagatedBuildInputs = [
setuptools
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [ "sentinels" ];

meta = with lib; {
homepage = "https://github.com/vmalloc/sentinels/";
description = "Various objects to denote special meanings in python";
license = licenses.bsd3;
maintainers = with maintainers; [ gador ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8839,6 +8839,8 @@ in {

sentinel = callPackage ../development/python-modules/sentinel { };

sentinels = callPackage ../development/python-modules/sentinels { };

sentry-sdk = callPackage ../development/python-modules/sentry-sdk { };

sepaxml = callPackage ../development/python-modules/sepaxml { };
Expand Down

0 comments on commit 0656394

Please sign in to comment.