python3Packages.dict2xml: clean-up, add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-02-17 09:30:17 +01:00 committed by GitHub
parent 2d2d6d917f
commit 82d9580185
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,27 @@
{ lib, fetchPypi, buildPythonPackage, six }:
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
}:
buildPythonPackage rec {
pname = "dict2xml";
version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ZgCqMx8X7uODNhH3GJmkOnZhLKdVoVdpzyBJLEsaoBY=";
hash = "sha256-ZgCqMx8X7uODNhH3GJmkOnZhLKdVoVdpzyBJLEsaoBY=";
};
propagatedBuildInputs = [ six ];
pythonImportsCheck = [
"dict2xml"
];
meta = with lib; {
description = "Super simple library to convert a Python dictionary into an xml string";
description = "Library to convert a Python dictionary into an XML string";
homepage = "https://github.com/delfick/python-dict2xml";
license = licenses.mit;
maintainers = with maintainers; [ johnazoidberg ];