nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (722B)


      1 {
      2   lib,
      3   fetchFromGitHub,
      4   python3Packages,
      5 }:
      6 
      7 python3Packages.buildPythonApplication rec {
      8   pname = "tinyflux";
      9   version = "1.0.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "citrusvanilla";
     14     repo = "tinyflux";
     15     rev = "v${version}";
     16     hash = "sha256-WgNkYFWZvZJ8MYMqfnqXH8YgjzRemMxAkyN9On+5PQI=";
     17   };
     18 
     19   postPatch = ''
     20     echo ${version} > version.txt
     21   '';
     22 
     23   build-system = with python3Packages; [ setuptools ];
     24 
     25   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     26 
     27   meta = {
     28     description = "The tiny time series database";
     29     homepage = "https://github.com/citrusvanilla/tinyflux";
     30     license = lib.licenses.mit;
     31     maintainers = [ lib.maintainers.sikmir ];
     32   };
     33 }