Loading nixos/modules/services/monitoring/prometheus/exporters/dmarc.nix +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ in { -i ${pkgs.writeText "dmarc-exporter.json.template" json} \ -o ''${STATE_DIRECTORY}/dmarc-exporter.json exec ${pkgs.prometheus-dmarc-exporter}/bin/prometheus-dmarc-exporter \ exec ${pkgs.dmarc-metrics-exporter}/bin/dmarc-metrics-exporter \ --configuration /var/lib/prometheus-dmarc-exporter/dmarc-exporter.json \ ${optionalString cfg.debug "--debug"} ''}"; Loading pkgs/development/python-modules/bite-parser/default.nix 0 → 100644 +48 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchPypi , poetry-core , pytest-asyncio , pytestCheckHook , typing-extensions }: buildPythonPackage rec { pname = "bite-parser"; version = "0.1.1"; disabled = pythonOlder "3.7"; format = "pyproject"; src = fetchPypi { inherit pname version; sha256 = "8021100bfbd6cc6056605361e763a3591efdea38014b3d8aa76c74c74de4ead4"; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'python = "^3.7,<=3.10"' 'python = "^3.7,<3.11"' \ --replace poetry.masonry.api poetry.core.masonry.api ''; nativeBuildInputs = [ poetry-core ]; checkInputs = [ pytest-asyncio pytestCheckHook typing-extensions ]; pythonImportsCheck = [ "bite" ]; meta = { description = "Asynchronous parser taking incremental bites out of your byte input stream"; homepage = "https://github.com/jgosmann/bite-parser"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; } pkgs/development/python-modules/dataclasses-serialization/default.nix 0 → 100644 +66 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchFromGitHub , more-properties , typing-inspect , toolz , toposort , bson , pytestCheckHook }: buildPythonPackage rec { pname = "dataclasses-serialization"; version = "1.3.1"; # upstream requires >= 3.6 but only 3.7 includes dataclasses disabled = pythonOlder "3.7"; format = "setuptools"; src = fetchFromGitHub { owner = "madman-bob"; repo = "python-dataclasses-serialization"; rev = version; hash = "sha256-jLMR2D01KgzHHRP0zduMBJt8xgBmIquWLCjZYLo2/AA="; }; postPatch = '' mv pypi_upload/setup.py . substituteInPlace setup.py \ --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" # dataclasses is included in Python 3.7 substituteInPlace requirements.txt \ --replace dataclasses "" # https://github.com/madman-bob/python-dataclasses-serialization/issues/16 sed -i '/(\(Dict\|List\)/d' tests/test_json.py tests/test_bson.py ''; propagatedBuildInputs = [ more-properties typing-inspect toolz toposort ]; checkInputs = [ bson pytestCheckHook ]; pythonImportsCheck = [ "dataclasses_serialization.bson" "dataclasses_serialization.json" "dataclasses_serialization.serializer_base" ]; meta = { description = "Serialize/deserialize Python dataclasses to various other data formats"; homepage = "https://github.com/madman-bob/python-dataclasses-serialization"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; } pkgs/development/python-modules/docformatter/default.nix 0 → 100644 +38 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchPypi , untokenize , pytestCheckHook }: buildPythonPackage rec { pname = "docformatter"; version = "1.4"; disabled = pythonOlder "3.6"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f"; }; propagatedBuildInputs = [ untokenize ]; checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "docformatter" ]; meta = { description = "Formats docstrings to follow PEP 257"; homepage = "https://github.com/myint/docformatter"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; } pkgs/development/python-modules/more-properties/default.nix 0 → 100644 +46 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchFromGitHub , pytestCheckHook }: buildPythonPackage rec { pname = "more-properties"; version = "1.1.1"; # upstream requires >= 3.6 but only 3.7 includes dataclasses disabled = pythonOlder "3.7"; format = "setuptools"; src = fetchFromGitHub { owner = "madman-bob"; repo = "python-more-properties"; rev = version; hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE="; }; postPatch = '' mv pypi_upload/setup.py . substituteInPlace setup.py \ --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" # dataclasses is included in Python 3.7 substituteInPlace requirements.txt \ --replace dataclasses "" ''; checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "more_properties" ]; meta = { description = "A collection of property variants"; homepage = "https://github.com/madman-bob/python-more-properties"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; } Loading
nixos/modules/services/monitoring/prometheus/exporters/dmarc.nix +1 −1 Original line number Diff line number Diff line Loading @@ -108,7 +108,7 @@ in { -i ${pkgs.writeText "dmarc-exporter.json.template" json} \ -o ''${STATE_DIRECTORY}/dmarc-exporter.json exec ${pkgs.prometheus-dmarc-exporter}/bin/prometheus-dmarc-exporter \ exec ${pkgs.dmarc-metrics-exporter}/bin/dmarc-metrics-exporter \ --configuration /var/lib/prometheus-dmarc-exporter/dmarc-exporter.json \ ${optionalString cfg.debug "--debug"} ''}"; Loading
pkgs/development/python-modules/bite-parser/default.nix 0 → 100644 +48 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchPypi , poetry-core , pytest-asyncio , pytestCheckHook , typing-extensions }: buildPythonPackage rec { pname = "bite-parser"; version = "0.1.1"; disabled = pythonOlder "3.7"; format = "pyproject"; src = fetchPypi { inherit pname version; sha256 = "8021100bfbd6cc6056605361e763a3591efdea38014b3d8aa76c74c74de4ead4"; }; postPatch = '' substituteInPlace pyproject.toml \ --replace 'python = "^3.7,<=3.10"' 'python = "^3.7,<3.11"' \ --replace poetry.masonry.api poetry.core.masonry.api ''; nativeBuildInputs = [ poetry-core ]; checkInputs = [ pytest-asyncio pytestCheckHook typing-extensions ]; pythonImportsCheck = [ "bite" ]; meta = { description = "Asynchronous parser taking incremental bites out of your byte input stream"; homepage = "https://github.com/jgosmann/bite-parser"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; }
pkgs/development/python-modules/dataclasses-serialization/default.nix 0 → 100644 +66 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchFromGitHub , more-properties , typing-inspect , toolz , toposort , bson , pytestCheckHook }: buildPythonPackage rec { pname = "dataclasses-serialization"; version = "1.3.1"; # upstream requires >= 3.6 but only 3.7 includes dataclasses disabled = pythonOlder "3.7"; format = "setuptools"; src = fetchFromGitHub { owner = "madman-bob"; repo = "python-dataclasses-serialization"; rev = version; hash = "sha256-jLMR2D01KgzHHRP0zduMBJt8xgBmIquWLCjZYLo2/AA="; }; postPatch = '' mv pypi_upload/setup.py . substituteInPlace setup.py \ --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" # dataclasses is included in Python 3.7 substituteInPlace requirements.txt \ --replace dataclasses "" # https://github.com/madman-bob/python-dataclasses-serialization/issues/16 sed -i '/(\(Dict\|List\)/d' tests/test_json.py tests/test_bson.py ''; propagatedBuildInputs = [ more-properties typing-inspect toolz toposort ]; checkInputs = [ bson pytestCheckHook ]; pythonImportsCheck = [ "dataclasses_serialization.bson" "dataclasses_serialization.json" "dataclasses_serialization.serializer_base" ]; meta = { description = "Serialize/deserialize Python dataclasses to various other data formats"; homepage = "https://github.com/madman-bob/python-dataclasses-serialization"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; }
pkgs/development/python-modules/docformatter/default.nix 0 → 100644 +38 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchPypi , untokenize , pytestCheckHook }: buildPythonPackage rec { pname = "docformatter"; version = "1.4"; disabled = pythonOlder "3.6"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f"; }; propagatedBuildInputs = [ untokenize ]; checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "docformatter" ]; meta = { description = "Formats docstrings to follow PEP 257"; homepage = "https://github.com/myint/docformatter"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; }
pkgs/development/python-modules/more-properties/default.nix 0 → 100644 +46 −0 Original line number Diff line number Diff line { lib , buildPythonPackage , pythonOlder , fetchFromGitHub , pytestCheckHook }: buildPythonPackage rec { pname = "more-properties"; version = "1.1.1"; # upstream requires >= 3.6 but only 3.7 includes dataclasses disabled = pythonOlder "3.7"; format = "setuptools"; src = fetchFromGitHub { owner = "madman-bob"; repo = "python-more-properties"; rev = version; hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE="; }; postPatch = '' mv pypi_upload/setup.py . substituteInPlace setup.py \ --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]" # dataclasses is included in Python 3.7 substituteInPlace requirements.txt \ --replace dataclasses "" ''; checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "more_properties" ]; meta = { description = "A collection of property variants"; homepage = "https://github.com/madman-bob/python-more-properties"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; }