depot/third_party/nixpkgs/pkgs/development/python-modules/kasa-crypt/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

48 lines
1,011 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
poetry-core,
pytestCheckHook,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "kasa-crypt";
version = "0.4.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdraco";
repo = "kasa-crypt";
rev = "refs/tags/v${version}";
hash = "sha256-7PLOuWxA5ziOuysSu+nLWNmNA3/sbuUCuZcMRBflf6U=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=kasa_crypt --cov-report=term-missing:skip-covered" ""
'';
build-system = [
cython
poetry-core
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "kasa_crypt" ];
meta = with lib; {
description = "Fast kasa crypt";
homepage = "https://github.com/bdraco/kasa-crypt";
changelog = "https://github.com/bdraco/kasa-crypt/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}