python3Packages.bitstring: enable tests
This commit is contained in:
parent
67402af78c
commit
ee05c8e8b5
@ -1,14 +1,27 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "bitstring";
|
pname = "bitstring";
|
||||||
version = "3.1.9";
|
version = "3.1.9";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "scott-griffiths";
|
||||||
sha256 = "1rv0x3vicjz7df6jq13aypgfqqjvlz0b92ya9li8a5qicczqm155";
|
repo = pname;
|
||||||
|
rev = "bitstring-${version}";
|
||||||
|
sha256 = "0y2kcq58psvl038r6dhahhlhp1wjgr5zsms45wyz1naq6ri8x9qa";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
cd test
|
||||||
|
${python.interpreter} -m unittest discover
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "bitstring" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Module for binary data manipulation";
|
description = "Module for binary data manipulation";
|
||||||
homepage = "https://github.com/scott-griffiths/bitstring";
|
homepage = "https://github.com/scott-griffiths/bitstring";
|
||||||
|
Loading…
Reference in New Issue
Block a user