default.nix (699B)
1 { lib, fetchFromGitHub, python3Packages }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "tinyflux"; 5 version = "0.2.4"; 6 pyproject = true; 7 8 src = fetchFromGitHub { 9 owner = "citrusvanilla"; 10 repo = "tinyflux"; 11 rev = "v${version}"; 12 hash = "sha256-mDbkKTFln0fYJW0DhLxdQu8ubjsjzJtJW9a+AD1NOU8="; 13 }; 14 15 postPatch = '' 16 echo ${version} > version.txt 17 ''; 18 19 propagatedBuildInputs = with python3Packages; [ setuptools ]; 20 21 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 22 23 meta = with lib; { 24 description = "The tiny time series database"; 25 inherit (src.meta) homepage; 26 license = licenses.mit; 27 maintainers = [ maintainers.sikmir ]; 28 }; 29 }