Skip to content

Commit

Permalink
Merge pull request #173183 from fabaff/bitarray-bump
Browse files Browse the repository at this point in the history
python310Packages.bitarray: disable on older Python releases
  • Loading branch information
fabaff authored May 15, 2022
2 parents 9c65530 + bc66d84 commit fbdc30b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/development/python-modules/bitarray/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,35 @@
, buildPythonPackage
, fetchPypi
, python
, pythonOlder
}:

buildPythonPackage rec {
pname = "bitarray";
version = "2.5.1";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-jTj2B1EAgJmmWdWs+zXvQVAYPv/Vsr+mwQGZJw3fTJw=";
hash = "sha256-jTj2B1EAgJmmWdWs+zXvQVAYPv/Vsr+mwQGZJw3fTJw=";
};

checkPhase = ''
cd $out
${python.interpreter} -c 'import bitarray; bitarray.test()'
'';

pythonImportsCheck = [ "bitarray" ];
pythonImportsCheck = [
"bitarray"
];

meta = with lib; {
description = "Efficient arrays of booleans";
homepage = "https://github.com/ilanschnell/bitarray";
changelog = "https://github.com/ilanschnell/bitarray/raw/${version}/CHANGE_LOG";
license = licenses.psfl;
maintainers = [ maintainers.bhipple ];
maintainers = with maintainers; [ bhipple ];
};
}

0 comments on commit fbdc30b

Please sign in to comment.