diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:31:50 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-20 12:32:25 +0100 |
commit | b7baf40e099b4215181fe7b0c63083b12ef2c7fb (patch) | |
tree | a6efabd31d05b6d0a36624729e80377bbbfb0149 /nixpkgs/pkgs/development/python-modules/miauth/default.nix | |
parent | 710028664e26e85cb831a869b3da9f6993902255 (diff) | |
parent | 0799f514b1cd74878174939df79ac60ca5036673 (diff) | |
download | nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.gz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.bz2 nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.lz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.xz nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.tar.zst nixlib-b7baf40e099b4215181fe7b0c63083b12ef2c7fb.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/miauth/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/miauth/default.nix | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/miauth/default.nix b/nixpkgs/pkgs/development/python-modules/miauth/default.nix index 380fe8e23e1f..486878140e04 100644 --- a/nixpkgs/pkgs/development/python-modules/miauth/default.nix +++ b/nixpkgs/pkgs/development/python-modules/miauth/default.nix @@ -1,32 +1,39 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi +, pythonOlder +, pythonRelaxDepsHook + +# build-system , setuptools -, wheel + +# dependencies , bluepy -, pythonOlder , cryptography + +# tests +, pytestCheckHook }: buildPythonPackage rec { pname = "miauth"; - version = "0.9.1"; + version = "0.9.7"; pyproject = true; disabled = pythonOlder "3.10"; - src = fetchFromGitHub { - owner = "dnandha"; - repo = "miauth"; - # Release is not tagged properly, https://github.com/dnandha/miauth/issues/15 - # rev = "refs/tags/${version}"; - rev = "refs/tags/release"; - hash = "sha256-+aoY0Eyd9y7xQTA3uSC6YIZisViilsHlFaOXmhPMcBY="; + src = fetchPypi { + inherit pname version; + hash = "sha256-2/4nFInpdY8fb/b+sXhgT6ZPtEgBV+KHMyLnxIp6y/U="; }; nativeBuildInputs = [ setuptools - wheel + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "cryptography" ]; propagatedBuildInputs = [ @@ -34,6 +41,10 @@ buildPythonPackage rec { cryptography ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "miauth" ]; |