Skip to content

Commit

Permalink
python311Packages.mohawk: refactor and remove nose
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Jul 5, 2024
1 parent 4b42a2b commit 3c24ed5
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions pkgs/development/python-modules/mohawk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,36 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
mock,
nose,
pytest,
pynose,
pytestCheckHook,
six,
}:

buildPythonPackage rec {
pname = "mohawk";
version = "1.1.0";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "08wppsv65yd0gdxy5zwq37yp6jmxakfz4a2yx5wwq2d222my786j";
hash = "sha256-0qDjqxCiCcx56V4o8t1UvUpz/RmY/+J7e6D5Yra+lyM=";
};

propagatedBuildInputs = [ six ];
build-system = [ setuptools ];

dependencies = [ six ];

pythonImportsCheck = [ "mohawk" ];

nativeCheckInputs = [
mock
nose
pytest
pynose
pytestCheckHook
];

checkPhase = ''
pytest mohawk/tests.py
'';
pytestFlagsArray = [ "mohawk/tests.py" ];

meta = {
description = "Python library for Hawk HTTP authorization";
Expand Down

0 comments on commit 3c24ed5

Please sign in to comment.