about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2024-01-10 01:11:23 +0100
committerAlyssa Ross <hi@alyssa.is>2024-01-10 01:11:23 +0100
commitc8d05d8abadb244bc4e6cee75d450978d1f09a61 (patch)
tree2d710425b8e3f78e84d5e46abb3397cb1b34ec18 /nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix
parentad899504860973e98351c922ecb934595f2c0f19 (diff)
parent0ed96eed101462bf05e1e99e1bbadcd49b4eb302 (diff)
downloadnixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.gz
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.bz2
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.lz
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.xz
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.tar.zst
nixlib-c8d05d8abadb244bc4e6cee75d450978d1f09a61.zip
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix b/nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix
new file mode 100644
index 000000000000..2c9a3595fca5
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/lcov-cobertura/default.nix
@@ -0,0 +1,29 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "lcov-cobertura";
+  version = "2.0.2";
+  format = "setuptools";
+  disabled = pythonOlder "3.6";
+
+  src = fetchPypi {
+    pname = "lcov_cobertura";
+    inherit version;
+    hash = "sha256-xs40e/PuZ/jV0CDNZiYmo1lM8r5yfMY0qg0R+j9/E3Q=";
+  };
+
+  doCheck = true;
+  pythonImportsCheck = [
+    "lcov_cobertura"
+  ];
+
+  meta = {
+    description = "Converts code coverage from lcov format to Cobertura's XML format";
+    homepage = "https://eriwen.github.io/lcov-to-cobertura-xml/";
+    license = lib.licenses.asl20;
+  };
+}