summary refs log tree commit diff
path: root/pkgs/development/python-modules/untangle/default.nix
blob: f8f172e78b1358674c7d46d6150ccbdc947b5c4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildPythonPackage, fetchFromGitHub, python }:

buildPythonPackage rec {
  pname = "untangle";
  version = "1.1.1";
  
  src = fetchFromGitHub {
    owner = "stchris";
    repo = "untangle";
    # 1.1.1 is not tagged on GitHub
    rev = "61b57cd771a40df7d1621e9ec3c68d9acd733d31";
    sha256 = "0ffvlfyyl82xi4akz1lls32lrnlrn44ik41v8x8xh9ghy0n0ick7";
  };
  
  checkPhase = ''
    ${python.interpreter} -m unittest discover -s tests
  '';
  
  meta = with lib; {
    description = "Convert XML documents into Python objects";
    homepage = "http://github.com/stchris/untangle";
    license = licenses.mit;
    maintainers = [ maintainers.arnoldfarkas ];
  };
}