package.nix (1363B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 cee-syslog-handler, 6 }: 7 8 python3Packages.buildPythonPackage (finalAttrs: { 9 pname = "c2cwsgiutils"; 10 version = "6.1.10"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "camptocamp"; 15 repo = "c2cwsgiutils"; 16 tag = finalAttrs.version; 17 hash = "sha256-ZhPqeymCM/t91Ao5+9NPM1y4DikDX2d/SiGfavXPAZk="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' \ 23 --replace-fail "poetry-dynamic-versioning[plugin]" "poetry-dynamic-versioning" \ 24 --replace-fail "\"poetry-plugin-tweak-dependencies-version\"," "" \ 25 --replace-fail "\"poetry-plugin-drop-python-upper-constraint\"," "" 26 ''; 27 28 build-system = with python3Packages; [ 29 poetry-core 30 poetry-dynamic-versioning 31 ]; 32 33 pythonRelaxDeps = true; 34 35 dependencies = with python3Packages; [ 36 boltons 37 cee-syslog-handler 38 lxml 39 netifaces 40 pillow 41 psycopg2 42 pyramid 43 pyyaml 44 requests 45 ujson 46 urllib3 47 waitress 48 ]; 49 50 doCheck = false; 51 pythonImportsCheck = [ "c2cwsgiutils" ]; 52 53 meta = { 54 description = "Common utilities for Camptocamp WSGI applications"; 55 homepage = "https://github.com/camptocamp/c2cwsgiutils"; 56 license = lib.licenses.bsd2; 57 maintainers = [ lib.maintainers.sikmir ]; 58 }; 59 })
