nur-packages

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

package.nix (993B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage (finalAttrs: {
      8   pname = "pycouchdb";
      9   version = "1.16.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "histrio";
     14     repo = "py-couchdb";
     15     tag = "v${finalAttrs.version}";
     16     hash = "sha256-jcDES8PC02F5eel2KThYZFXKzUm70UqktG521lt+Dj0=";
     17   };
     18 
     19   postPatch = ''
     20     substituteInPlace pyproject.toml \
     21       --replace-fail "poetry.masonry" "poetry.core.masonry" \
     22       --replace-fail "poetry>=" "poetry-core>="
     23   '';
     24 
     25   build-system = with python3Packages; [ poetry-core ];
     26 
     27   pythonRelaxDeps = true;
     28 
     29   dependencies = with python3Packages; [
     30     requests
     31     chardet
     32   ];
     33 
     34   doCheck = false;
     35 
     36   nativeCheckInputs = with python3Packages; [
     37     pytestCheckHook
     38     responses
     39   ];
     40 
     41   meta = {
     42     description = "Modern pure python CouchDB Client";
     43     homepage = "https://github.com/histrio/py-couchdb";
     44     license = lib.licenses.bsd3;
     45     maintainers = [ lib.maintainers.sikmir ];
     46   };
     47 })