depot/third_party/nixpkgs/pkgs/development/python-modules/devialet/default.nix

41 lines
868 B
Nix
Raw Normal View History

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "devialet";
version = "1.4.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fwestenberg";
repo = "devialet";
rev = "refs/tags/v${version}";
hash = "sha256-oGa5tRCJAWBg/877UmmXnX7fkFLoxhyuG6gpXmyhRKo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "devialet" ];
meta = with lib; {
description = "Library to interact with the Devialet API";
homepage = "https://github.com/fwestenberg/devialet";
changelog = "https://github.com/fwestenberg/devialet/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}