summary refs log blame commit diff
path: root/pkgs/development/python-modules/bitstring/default.nix
blob: 52bc9bae865bda54063f221270816f646531c879 (plain) (tree)
1
2
3
4
5
6
7
8
9




                    


                        
                    
 




                                                                    

    






                                              
                    


                                                              
                               


                                                 
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:

buildPythonPackage rec {
  pname = "bitstring";
  version = "3.1.9";

  src = fetchFromGitHub {
    owner = "scott-griffiths";
    repo = pname;
    rev = "bitstring-${version}";
    sha256 = "0y2kcq58psvl038r6dhahhlhp1wjgr5zsms45wyz1naq6ri8x9qa";
  };

  checkPhase = ''
    cd test
    ${python.interpreter} -m unittest discover
  '';

  pythonImportsCheck = [ "bitstring" ];

  meta = with lib; {
    description = "Module for binary data manipulation";
    homepage = "https://github.com/scott-griffiths/bitstring";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = with maintainers; [ bjornfor ];
  };
}